diff options
-rw-r--r-- | cmake/toolchain/arm-none-eabi-gcc.cmake | 5 | ||||
-rw-r--r-- | cmake/toolchain/armclang.cmake | 1 |
2 files changed, 4 insertions, 2 deletions
diff --git a/cmake/toolchain/arm-none-eabi-gcc.cmake b/cmake/toolchain/arm-none-eabi-gcc.cmake index 701824f..11a1191 100644 --- a/cmake/toolchain/arm-none-eabi-gcc.cmake +++ b/cmake/toolchain/arm-none-eabi-gcc.cmake @@ -44,6 +44,7 @@ set(CMAKE_CXX_STANDARD 14) add_compile_options( -mcpu=${TARGET_CPU} -mthumb + "$<$<CONFIG:DEBUG>:-gdwarf-3>" "$<$<COMPILE_LANGUAGE:CXX>:-fno-unwind-tables;-fno-rtti;-fno-exceptions>") # Compile defines @@ -80,11 +81,11 @@ add_compile_options( -Wsign-compare -Wunused -Wswitch-default -# -Wformat + -Wformat -Wdouble-promotion -Wredundant-decls -Wshadow -# -Wcast-align + -Wcast-align -Wnull-dereference -Wno-format-extra-args -Wno-unused-function diff --git a/cmake/toolchain/armclang.cmake b/cmake/toolchain/armclang.cmake index 25c510c..257c2a8 100644 --- a/cmake/toolchain/armclang.cmake +++ b/cmake/toolchain/armclang.cmake @@ -84,6 +84,7 @@ add_compile_options( -Wnull-dereference -Wno-format-extra-args -Wno-unused-function + -Wno-unused-parameter -Wno-unused-label -Wno-missing-field-initializers -Wno-return-type) |