mirror of
https://github.com/espressif/esp-nimble.git
synced 2026-06-06 05:14:45 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user