You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by cc...@apache.org on 2018/02/14 23:21:17 UTC
[mynewt-mcumgr] 02/07: smp_svr (Zephyr) - Remove IS_ENABLED
invocations.
This is an automated email from the ASF dual-hosted git repository.
ccollins pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-mcumgr.git
commit 928623c672a177e5e9e946c4787ca3f8aa78c830
Author: Christopher Collins <cc...@apache.org>
AuthorDate: Wed Feb 14 13:52:47 2018 -0800
smp_svr (Zephyr) - Remove IS_ENABLED invocations.
Use of this macro was eliciting "implicit declaration" warnings for
conditionally defined symboles. Reverting to `#ifdef` fixes the
warnings.
---
samples/smp_svr/zephyr/src/main.c | 24 ++++++++++++------------
1 file changed, 12 insertions(+), 12 deletions(-)
diff --git a/samples/smp_svr/zephyr/src/main.c b/samples/smp_svr/zephyr/src/main.c
index a9c077f..022817c 100644
--- a/samples/smp_svr/zephyr/src/main.c
+++ b/samples/smp_svr/zephyr/src/main.c
@@ -111,18 +111,18 @@ void main(void)
assert(rc == 0);
/* Register the built-in mcumgr command handlers. */
- if (IS_ENABLED(CONFIG_MCUMGR_CMD_FS_MGMT)) {
- fs_mgmt_register_group();
- }
- if (IS_ENABLED(CONFIG_MCUMGR_CMD_OS_MGMT)) {
- os_mgmt_register_group();
- }
- if (IS_ENABLED(CONFIG_MCUMGR_CMD_IMG_MGMT)) {
- img_mgmt_register_group();
- }
- if (IS_ENABLED(CONFIG_MCUMGR_CMD_STAT_MGMT)) {
- stat_mgmt_register_group();
- }
+#ifdef CONFIG_MCUMGR_CMD_FS_MGMT
+ fs_mgmt_register_group();
+#endif
+#ifdef CONFIG_MCUMGR_CMD_OS_MGMT
+ os_mgmt_register_group();
+#endif
+#ifdef CONFIG_MCUMGR_CMD_IMG_MGMT
+ img_mgmt_register_group();
+#endif
+#ifdef CONFIG_MCUMGR_CMD_STAT_MGMT
+ stat_mgmt_register_group();
+#endif
/* Enable Bluetooth. */
rc = bt_enable(bt_ready);
--
To stop receiving notification emails like this one, please contact
ccollins@apache.org.