Skip to content

Commit cf11196

Browse files
committed
gcc: Enable address-of-packed-member warnings
After having resolved all of the instances of packed member access, re-enable the warning. Fixes #16587. Signed-off-by: Carles Cufi <carles.cufi@nordicsemi.no>
1 parent f3718ed commit cf11196

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

cmake/compiler/gcc/compiler_flags.cmake

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -42,14 +42,6 @@ check_set_compiler_property(APPEND PROPERTY warning_base -Wpointer-arith)
4242
# not portable
4343
check_set_compiler_property(APPEND PROPERTY warning_base -Wexpansion-to-defined)
4444

45-
if(CMAKE_CXX_COMPILER_VERSION VERSION_GREATER "9.1.0")
46-
set_compiler_property(APPEND PROPERTY warning_base
47-
# FIXME: Remove once #16587 is fixed
48-
-Wno-address-of-packed-member
49-
)
50-
endif()
51-
52-
5345
# GCC options for warning levels 1, 2, 3, when using `-DW=[1|2|3]`
5446
set_compiler_property(PROPERTY warning_dw_1
5547
-Waggregate-return

0 commit comments

Comments
 (0)