porting: Fix SYSINIT_PANIC_ASSERT_MSG refinition warning

porting/npl/nuttx/include/nimble/nimble_npl_os.h:40: warning: "SYSINIT_PANIC_ASSERT_MSG" redefined
   40 | #define SYSINIT_PANIC_ASSERT_MSG(rc, msg) do \
      |
nimble/host/services/tps/src/ble_svc_tps.c:22:
porting/nimble/include/sysinit/sysinit.h:32: note: this is the location of the previous definition
   32 | #define SYSINIT_PANIC_ASSERT_MSG(rc, msg)   assert(rc)
      |

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
Xiang Xiao
2023-02-06 16:51:03 +08:00
committed by Szymon Janc
parent 65e774e104
commit 69c0d323a9
2 changed files with 0 additions and 14 deletions
@@ -37,13 +37,6 @@ extern "C" {
#define SYSINIT_PANIC_MSG(msg) __assert_fail(msg, __FILE__, __LINE__, __func__)
#define SYSINIT_PANIC_ASSERT_MSG(rc, msg) do \
{ \
if (!(rc)) { \
SYSINIT_PANIC_MSG(msg); \
} \
} while (0)
#ifdef __cplusplus
}
#endif
@@ -37,13 +37,6 @@ extern "C" {
#define SYSINIT_PANIC_MSG(msg) { fprintf(stderr, "%s\n", msg); abort(); }
#define SYSINIT_PANIC_ASSERT_MSG(rc, msg) do \
{ \
if (!(rc)) { \
SYSINIT_PANIC_MSG(msg); \
} \
} while (0)
#ifdef __cplusplus
}
#endif