Skip to content

Commit e89c8e5

Browse files
committed
Revert "[nrf fromtree] cmake: use the warnings_as_errors flag for cpp files"
Some nRF Connect SDK samples are generating warnings for C++ code. nRF Connect SDK CI treats warnings as errors for code, but this was previous not active for C++ source code. Therfore revert the upstream warning-as-errors flag for C++ code. Revert this commit when nRF Connect SDK C++ source code is clear from warnings. This reverts commit f3e3ced. Signed-off-by: Torsten Rasmussen <[email protected]>
1 parent db1f0fc commit e89c8e5

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,6 @@ zephyr_compile_options($<$<COMPILE_LANGUAGE:CXX>:$<TARGET_PROPERTY:compiler-cpp,
152152
# Extra warnings options for twister run
153153
if (CONFIG_COMPILER_WARNINGS_AS_ERRORS)
154154
zephyr_compile_options($<$<COMPILE_LANGUAGE:C>:$<TARGET_PROPERTY:compiler,warnings_as_errors>>)
155-
zephyr_compile_options($<$<COMPILE_LANGUAGE:CXX>:$<TARGET_PROPERTY:compiler,warnings_as_errors>>)
156155
zephyr_compile_options($<$<COMPILE_LANGUAGE:ASM>:$<TARGET_PROPERTY:asm,warnings_as_errors>>)
157156
zephyr_link_libraries($<TARGET_PROPERTY:linker,warnings_as_errors>)
158157
endif()

0 commit comments

Comments
 (0)