1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-15 04:15:44 +03:00

Removed duplicate definition of 'BUILD_BUG_ON'.

This commit is contained in:
mikeller 2018-07-23 20:12:23 +12:00
parent bbf493ebae
commit 54dd79ac69
2 changed files with 1 additions and 3 deletions

View file

@ -57,7 +57,7 @@
#if !defined(UNUSED)
#define UNUSED(x) (void)(x)
#endif
#define BUILD_BUG_ON(condition) ((void)sizeof(char[1 - 2*!!(condition)]))
#define STATIC_ASSERT(condition, name) \
typedef char assert_failed_ ## name [(condition) ? 1 : -1 ] __attribute__((unused))