diff options
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/toolchain/arm-none-eabi-gcc.cmake | 23 | ||||
-rw-r--r-- | cmake/toolchain/armclang.cmake | 20 |
2 files changed, 19 insertions, 24 deletions
diff --git a/cmake/toolchain/arm-none-eabi-gcc.cmake b/cmake/toolchain/arm-none-eabi-gcc.cmake index 1605f24..d37a3dc 100644 --- a/cmake/toolchain/arm-none-eabi-gcc.cmake +++ b/cmake/toolchain/arm-none-eabi-gcc.cmake @@ -84,18 +84,17 @@ endif() add_compile_options( -Wall -Wextra - -Wsign-compare - -Wunused - -Wswitch-default - -Wformat + + -Wcast-align -Wdouble-promotion + -Wformat + -Wmissing-field-initializers + -Wnull-dereference -Wredundant-decls -Wshadow - -Wcast-align - -Wnull-dereference - -Wno-format-extra-args - -Wno-unused-function - -Wno-unused-parameter - -Wno-unused-label - -Wno-missing-field-initializers - -Wno-return-type) + -Wswitch + -Wswitch-default + -Wunused + + -Wno-redundant-decls +)
\ No newline at end of file diff --git a/cmake/toolchain/armclang.cmake b/cmake/toolchain/armclang.cmake index 3217fbf..f65b9a5 100644 --- a/cmake/toolchain/armclang.cmake +++ b/cmake/toolchain/armclang.cmake @@ -73,18 +73,14 @@ add_link_options( add_compile_options( -Wall -Wextra - -Wsign-compare - -Wunused - -Wswitch-default - -Wformat + + -Wcast-align -Wdouble-promotion + -Wformat + -Wmissing-field-initializers + -Wnull-dereference -Wredundant-decls -Wshadow - -Wcast-align - -Wnull-dereference - -Wno-format-extra-args - -Wno-unused-function - -Wno-unused-parameter - -Wno-unused-label - -Wno-missing-field-initializers - -Wno-return-type) + -Wswitch-default + -Wunused +) |