mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-01-01 09:08:06 +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
|
||||
#else /* ENABLE_BTSTACK_ASSERT */
|
||||
// asserts off
|
||||
#define btstack_assert(condition) {}
|
||||
#define btstack_assert(condition) {(void)(condition);}
|
||||
#endif /* btstack_assert */
|
||||
#endif /* HAVE_ASSERT */
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user