Skip to content

Commit 8848fd4

Browse files
ycsinfabiobaltieri
authored andcommitted
toolchain: match gcc 'missing-field-initializers' with others
`arcmwdt`` and `clang` both have `-Wno-missing-field-initializers` in `warning_dw_1` and `-Wmissing-field-initializers` in `warning_dw_2` while `gcc` has `-Wmissing-field-initializers` in `warning_dw_1`, so update it to match. Signed-off-by: Yong Cong Sin <[email protected]> Signed-off-by: Yong Cong Sin <[email protected]>
1 parent 17be7ff commit 8848fd4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cmake/compiler/gcc/compiler_flags.cmake

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ set_compiler_property(PROPERTY warning_dw_1
5959
)
6060
check_set_compiler_property(APPEND PROPERTY warning_dw_1
6161
-Wlogical-op
62-
-Wmissing-field-initializers
62+
-Wno-missing-field-initializers
6363
)
6464

6565
set_compiler_property(PROPERTY warning_dw_2
@@ -71,6 +71,7 @@ set_compiler_property(PROPERTY warning_dw_2
7171
-Wpointer-arith
7272
-Wredundant-decls
7373
-Wswitch-default
74+
-Wmissing-field-initializers
7475
)
7576
check_set_compiler_property(APPEND PROPERTY warning_dw_2
7677
-Wpacked-bitfield-compat

0 commit comments

Comments
 (0)