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 <ycsin@meta.com> Signed-off-by: Yong Cong Sin <yongcong.sin@gmail.com>
This commit is contained in:
parent
17be7ffca5
commit
8848fd4613
1 changed files with 2 additions and 1 deletions
|
@ -59,7 +59,7 @@ set_compiler_property(PROPERTY warning_dw_1
|
|||
)
|
||||
check_set_compiler_property(APPEND PROPERTY warning_dw_1
|
||||
-Wlogical-op
|
||||
-Wmissing-field-initializers
|
||||
-Wno-missing-field-initializers
|
||||
)
|
||||
|
||||
set_compiler_property(PROPERTY warning_dw_2
|
||||
|
@ -71,6 +71,7 @@ set_compiler_property(PROPERTY warning_dw_2
|
|||
-Wpointer-arith
|
||||
-Wredundant-decls
|
||||
-Wswitch-default
|
||||
-Wmissing-field-initializers
|
||||
)
|
||||
check_set_compiler_property(APPEND PROPERTY warning_dw_2
|
||||
-Wpacked-bitfield-compat
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue