Browse Source

cmake: clang: Enable -Waddress-of-packed-member

Several years ago we started enabling the -Waddress-of-packed-member
warning in commit cf111962e0 for GCC.

Do the same for Clang, since there is no reason not to and the warning
is very useful, especially in protocol stacks.

Signed-off-by: Carles Cufi <carles.cufi@nordicsemi.no>
pull/90162/merge
Carles Cufi 2 weeks ago committed by Daniel DeGrasse
parent
commit
4ea89d0ada
  1. 1
      cmake/compiler/clang/compiler_flags.cmake

1
cmake/compiler/clang/compiler_flags.cmake

@ -103,7 +103,6 @@ check_set_compiler_property(APPEND PROPERTY warning_dw_3 @@ -103,7 +103,6 @@ check_set_compiler_property(APPEND PROPERTY warning_dw_3
check_set_compiler_property(PROPERTY warning_extended
#FIXME: need to fix all of those
-Wno-self-assign
-Wno-address-of-packed-member
-Wno-initializer-overrides
-Wno-section
-Wno-gnu

Loading…
Cancel
Save