cmake: test format options together
Fixes: #47588 Use `check_set_compiler_property(... "SHELL:-Wformat -W<format-option>")` to ensure that compiler options requiring `-Wformat` to work properly are tested with said option. Signed-off-by: Torsten Rasmussen <Torsten.Rasmussen@nordicsemi.no>
This commit is contained in:
parent
c32e4a71bf
commit
c2974e22d4
1 changed files with 2 additions and 3 deletions
|
@ -28,9 +28,8 @@ set_compiler_property(PROPERTY optimization_size -Os)
|
|||
# GCC Option standard warning base in Zephyr
|
||||
check_set_compiler_property(PROPERTY warning_base
|
||||
-Wall
|
||||
-Wformat
|
||||
-Wformat-security
|
||||
-Wno-format-zero-length
|
||||
"SHELL:-Wformat -Wformat-security"
|
||||
"SHELL:-Wformat -Wno-format-zero-length"
|
||||
-Wno-main
|
||||
)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue