diff --git a/cmake/compiler/gcc/compiler_flags.cmake b/cmake/compiler/gcc/compiler_flags.cmake index 38d2b471690..ee2bb027d6a 100644 --- a/cmake/compiler/gcc/compiler_flags.cmake +++ b/cmake/compiler/gcc/compiler_flags.cmake @@ -39,6 +39,9 @@ check_set_compiler_property(APPEND PROPERTY warning_base -Wno-pointer-sign) # Prohibit void pointer arithmetic. Illegal in C99 check_set_compiler_property(APPEND PROPERTY warning_base -Wpointer-arith) +# not portable +check_set_compiler_property(APPEND PROPERTY warning_base -Wexpansion-to-defined) + if(CMAKE_CXX_COMPILER_VERSION VERSION_GREATER "9.1.0") set_compiler_property(APPEND PROPERTY warning_base # FIXME: Remove once #16587 is fixed