2. 可能导致 -Wmacro-redefined 警告出现的情境 头文件重复包含:如果头文件被多次包含,并且头文件中定义了宏,而没有使用包含保护(如 #ifndef, #define, #endif),则每次包含时都会重新定义宏。 多个源文件包含相同的宏定义:在不同的源文件中定义了相同的宏名称,且这些源文件被编译到同一个项目中。 条件编译导致...
make: *** [../common/common.mk:111: xdp_prog_kern_03.o] Error 1 It also happens with: xdp_prog_kern_03.c:215:9: error: 'AF_INET6' macro redefined [-Werror,-Wmacro-redefined] #define AF_INET6 10 ^ /usr/include/bits/socket.h:104:9: note: previous definition is here #defin...
AM_CFLAGS+= -Wno-unused-result -Wno-format-y2k if IS_DARWIN AM_CFLAGS+= -Wno-deprecated-declarations -Wno-cast-align AM_CFLAGS+= -Wno-deprecated-declarations -Wno-cast-align-Wno-macro-redefined endif AM_CPPFLAGS+= -DDEBUG endif Expand Down...
C:/Program Files/Freescale/CW MCU v10.2/MCU/ColdFire_Tools/Command_Line_Tools/mwccmcf|Compiler|Error >macro '_MSL_OS_TIME_SUPPORT' redefined >(included from: >macro '_MSL_OS_TIME_SUPPORT' redefined >macro '_MSL_OS_TIME_SUPPORT' redefined >macro '_MSL_OS_TIME_SUPPOR...
了解社区公约,与您携手共创和谐专业的开发者社区。 HarmonyOS Developer 工具 ArkTS ArkUI ArkCompiler DevEco Studio DevEco Testing DevEco Device Tool DevEco Service 仓颉 HarmonyOS Symbol 开放能力 Account Kit Ads Kit Core Speech Kit Core Vision Kit IAP Kit Intents Kit Location Kit Live View Kit Paym...
>macro '_MSL_OS_TIME_SUPPORT' redefined "C:/Program Files/Freescale/CW MCU v10.2/MCU/ColdFire_Tools/Command_Line_Tools/mwccmcf" @@"Sources/main.args" -o "Sources/main_c.obj" "C:/[PROJECT DIR]/Sources/main.c" -MD -gccdep C:/Program Files/Freescale/CW MCU v10.2/MCU/...
$ ./autogen.sh && ./configure && make $ cd tests && make multiple_scanners_r I can get multiple "macro redefined" warnings from this: gcc -DHAVE_CONFIG_H -I. -I../src -I../src -I../src -g -O2 -MT multiple_scanners_r_main.o -MD -MP -MF .d...
2: In file included from include/linux/compiler_types.h:69: include/linux/compiler-clang.h:47:9: warning: '__HAVE_BUILTIN_BSWAP16__' macro redefined [-Wmacro-redefined] #define __HAVE_BUILTIN_BSWAP16__ ^ :3:9: note: previous definition is here #define __HAVE_BUILTIN_ This happens...
>macro '_MSL_OS_TIME_SUPPORT' redefined > (command-line defines):1 > (C-C++ Preprocessor Panel):1 What gets me is the references to the command-line definitions. _MSL_OS_TIME_SUPPORT is defined in the new header file previously mentioned. I don't see anywhere in the CW10 project ...
>macro '_MSL_OS_TIME_SUPPORT' redefined > (command-line defines):1 > (C-C++ Preprocessor Panel):1 What gets me is the references to the command-line definitions. _MSL_OS_TIME_SUPPORT is defined in the new header file previously mentioned. I don't see anywhere in...