interoberlin / blessed

Open Source Bluetooth Low Energy Stack for Nordic's nRF51822
0 stars 0 forks source link

log.c:45:31: error: expected declaration specifiers or '...' before numeric constant #4

Open matthiasbock opened 8 years ago

matthiasbock commented 8 years ago
$ make
/usr/bin/arm-none-eabi-gcc -std=gnu99 -Wall -g -mcpu=cortex-m0 -mthumb -mabi=aapcs -mfloat-abi=soft -ffunction-sections -fdata-sections -fno-strict-aliasing -fno-builtin --short-enums -c -o log.o log.c
log.c:45:31: error: expected declaration specifiers or '...' before numeric constant
 #define CONFIG_LOG_BUFFER_LEN 128
                               ^
log.c:56:22: note: in expansion of macro 'CONFIG_LOG_BUFFER_LEN'
 #define BUFFER_LEN   CONFIG_LOG_BUFFER_LEN
                      ^
log.c:70:15: note: in expansion of macro 'BUFFER_LEN'
 STATIC_ASSERT(BUFFER_LEN && !(BUFFER_LEN & (BUFFER_LEN - 1)));
               ^
: recipe for target 'log.o' failed
make: *** [log.o] Error 1
matthiasbock commented 8 years ago

Workaround:

#define CONFIG_LOG_ENABLE       0