Commit 4ea89d0a authored by Carles Cufi's avatar Carles Cufi Committed by Daniel DeGrasse
Browse files

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

Several years ago we started enabling the -Waddress-of-packed-member
warning in commit cf111962 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: default avatarCarles Cufi <carles.cufi@nordicsemi.no>
parent 12babf9e
Loading
Loading
Loading
Loading
+0 −1
Changes for cmake/compiler/clang/compiler_flags.cmake: 0 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -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