C++: Suppress warning
The "register" keyword was deprecated since C++11. Add -Wno-register flag for avoid warning, with recent version of C++. Signed-off-by: Benoit Leforestier <benoit.leforestier@gmail.com>
This commit is contained in:
parent
cf57312953
commit
04dad5954c
1 changed files with 6 additions and 0 deletions
|
@ -247,6 +247,12 @@ if(W MATCHES "3")
|
|||
)
|
||||
endif()
|
||||
|
||||
if(NOT CONFIG_STD_CPP98) # "register" keyword was deprecated since C++11.
|
||||
zephyr_compile_options(
|
||||
$<$<COMPILE_LANGUAGE:CXX>:-Wno-register>
|
||||
)
|
||||
endif()
|
||||
|
||||
# Allow the user to inject options when calling cmake, e.g.
|
||||
# 'cmake -DEXTRA_CFLAGS="-Werror -Wno-deprecated-declarations" ..'
|
||||
include(cmake/extra_flags.cmake)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue