mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-01-03 23:47:08 +00:00
btstack_debug: prevent unused variable warnings if the variables are only used in asserts
This commit is contained in:
parent
5b3dbb3859
commit
6fbaff2f50
@ -83,7 +83,7 @@ void btstack_assert_failed(const char * file, uint16_t line_nr);
|
|||||||
#endif
|
#endif
|
||||||
#else /* ENABLE_BTSTACK_ASSERT */
|
#else /* ENABLE_BTSTACK_ASSERT */
|
||||||
// asserts off
|
// asserts off
|
||||||
#define btstack_assert(condition) {}
|
#define btstack_assert(condition) {(void)(condition);}
|
||||||
#endif /* btstack_assert */
|
#endif /* btstack_assert */
|
||||||
#endif /* HAVE_ASSERT */
|
#endif /* HAVE_ASSERT */
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user