Skip to content

Commit 4ea89d0

Browse files
carlescufidanieldegrasse
authored andcommitted
cmake: clang: Enable -Waddress-of-packed-member
Several years ago we started enabling the -Waddress-of-packed-member warning in commit cf11196 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>
1 parent 12babf9 commit 4ea89d0

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

cmake/compiler/clang/compiler_flags.cmake

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,6 @@ check_set_compiler_property(APPEND PROPERTY warning_dw_3
103103
check_set_compiler_property(PROPERTY warning_extended
104104
#FIXME: need to fix all of those
105105
-Wno-self-assign
106-
-Wno-address-of-packed-member
107106
-Wno-initializer-overrides
108107
-Wno-section
109108
-Wno-gnu

0 commit comments

Comments
 (0)