From 4ea89d0adae312c9533dae57ff1171adc6f9d707 Mon Sep 17 00:00:00 2001 From: Carles Cufi Date: Fri, 27 Jun 2025 18:13:35 +0200 Subject: [PATCH] cmake: clang: Enable -Waddress-of-packed-member Several years ago we started enabling the -Waddress-of-packed-member warning in commit cf111962e0d0c388bf806bbd9f17d49732daa264 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 --- cmake/compiler/clang/compiler_flags.cmake | 1 - 1 file changed, 1 deletion(-) diff --git a/cmake/compiler/clang/compiler_flags.cmake b/cmake/compiler/clang/compiler_flags.cmake index 1e9b160e94a..20bee6d4f3b 100644 --- a/cmake/compiler/clang/compiler_flags.cmake +++ b/cmake/compiler/clang/compiler_flags.cmake @@ -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