1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-15 12:25:20 +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

@ -35,8 +35,6 @@
#define UNIT_TESTED #define UNIT_TESTED
#endif #endif
//#define SOFT_I2C // enable to test software i2c
#ifndef __CC_ARM #ifndef __CC_ARM
#define REQUIRE_CC_ARM_PRINTF_SUPPORT #define REQUIRE_CC_ARM_PRINTF_SUPPORT
#define REQUIRE_PRINTF_LONG_SUPPORT #define REQUIRE_PRINTF_LONG_SUPPORT

View file

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