cmake: no-address-of-packed-member is not supported in older compilers
Add a version check to allow building with older GCC versions that did not support this option. Fixes #16607 Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
parent
ca49d6a857
commit
deb7ff524a
|
@ -9,11 +9,16 @@ macro(toolchain_cc_warning_base)
|
|||
-Wformat
|
||||
-Wformat-security
|
||||
-Wno-format-zero-length
|
||||
# FIXME: Remove once #16587 is fixed
|
||||
-Wno-address-of-packed-member
|
||||
-Wno-main
|
||||
)
|
||||
|
||||
if(CMAKE_CXX_COMPILER_VERSION VERSION_GREATER "9.1.0")
|
||||
zephyr_compile_options(
|
||||
# FIXME: Remove once #16587 is fixed
|
||||
-Wno-address-of-packed-member
|
||||
)
|
||||
endif()
|
||||
|
||||
zephyr_cc_option(-Wno-pointer-sign)
|
||||
|
||||
# Prohibit void pointer arithmetic. Illegal in C99
|
||||
|
|
Loading…
Reference in a new issue