btstack_debug: prevent unused variable warnings if the variables are only used in asserts

This commit is contained in:
Dirk Helbig 2023-09-22 17:59:59 +02:00
parent 5b3dbb3859
commit 6fbaff2f50

View File

@ -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 */