You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2020/04/16 17:38:51 UTC
[incubator-nuttx] branch master updated: Fix sixlowpan_framer.c
build warnings under macos
This is an automated email from the ASF dual-hosted git repository.
xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git
The following commit(s) were added to refs/heads/master by this push:
new 9ac3a0d Fix sixlowpan_framer.c build warnings under macos
9ac3a0d is described below
commit 9ac3a0d4d896a5f22489e3f5da22e4410c0144f5
Author: liuhaitao <li...@xiaomi.com>
AuthorDate: Thu Apr 16 23:40:34 2020 +0800
Fix sixlowpan_framer.c build warnings under macos
sixlowpan/sixlowpan_framer.c:104:20: warning: unused function 'sixlowpan_saddrnull'
[-Wunused-function]
static inline bool sixlowpan_saddrnull(FAR const uint8_t *saddr)
^
sixlowpan/sixlowpan_framer.c:124:20: warning: unused function 'sixlowpan_eaddrnull'
[-Wunused-function]
static inline bool sixlowpan_eaddrnull(FAR const uint8_t *eaddr)
^
2 warnings generated.
Signed-off-by: liuhaitao <li...@xiaomi.com>
---
net/sixlowpan/sixlowpan_framer.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/net/sixlowpan/sixlowpan_framer.c b/net/sixlowpan/sixlowpan_framer.c
index 7f6a4f9..8a2c702 100644
--- a/net/sixlowpan/sixlowpan_framer.c
+++ b/net/sixlowpan/sixlowpan_framer.c
@@ -53,6 +53,7 @@
#ifdef CONFIG_NET_6LOWPAN
+#ifdef CONFIG_WIRELESS_IEEE802154
/****************************************************************************
* Public Functions
****************************************************************************/
@@ -150,7 +151,6 @@ static inline bool sixlowpan_eaddrnull(FAR const uint8_t *eaddr)
*
****************************************************************************/
-#ifdef CONFIG_WIRELESS_IEEE802154
int sixlowpan_meta_data(FAR struct radio_driver_s *radio,
FAR const struct ieee802_txmetadata_s *pktmeta,
FAR struct ieee802154_frame_meta_s *meta)