diff options
| author | hathach <[email protected]> | 2023-06-16 15:29:34 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2023-06-16 15:29:34 +0700 |
| commit | e754795d3adec4bc3a66a4131d0662d87acb4893 (patch) | |
| tree | 281212f5852f6ce9d2a607aab3e0acea94c2e708 /tools/cmake/toolchain | |
| parent | a7f330fa94b7a39858f6d770737451b51f061c25 (diff) | |
fix build warnings
Diffstat (limited to 'tools/cmake/toolchain')
| -rw-r--r-- | tools/cmake/toolchain/arm_gcc.cmake | 26 | ||||
| -rw-r--r-- | tools/cmake/toolchain/arm_iar.cmake | 3 |
2 files changed, 0 insertions, 29 deletions
diff --git a/tools/cmake/toolchain/arm_gcc.cmake b/tools/cmake/toolchain/arm_gcc.cmake index 6dd1e7002..cefa9d2ce 100644 --- a/tools/cmake/toolchain/arm_gcc.cmake +++ b/tools/cmake/toolchain/arm_gcc.cmake @@ -35,32 +35,6 @@ set(TOOLCHAIN_EXE_LINKER_FLAGS -Wl,--cref ) -set(TOOLCHAIN_WARNING_FLAGS - -Wall - -Wextra - -Werror - -Wfatal-errors - -Wdouble-promotion - -Wstrict-prototypes - -Wstrict-overflow - -Werror-implicit-function-declaration - -Wfloat-equal - -Wundef - -Wshadow - -Wwrite-strings - -Wsign-compare - -Wmissing-format-attribute - -Wunreachable-code - -Wcast-align - -Wcast-function-type - -Wcast-qual - -Wnull-dereference - -Wuninitialized - -Wunused - -Wreturn-type - -Wredundant-decls - ) - include(${CMAKE_CURRENT_LIST_DIR}/set_flags.cmake) # try_compile is cmake test compiling its own example, diff --git a/tools/cmake/toolchain/arm_iar.cmake b/tools/cmake/toolchain/arm_iar.cmake index dfbe55e0d..a487e5b9f 100644 --- a/tools/cmake/toolchain/arm_iar.cmake +++ b/tools/cmake/toolchain/arm_iar.cmake @@ -28,7 +28,4 @@ list(APPEND TOOLCHAIN_COMMON_FLAGS list(APPEND TOOLCHAIN_EXE_LINKER_FLAGS ) -list(APPEND TOOLCHAIN_WARNING_FLAGS - ) - include(${CMAKE_CURRENT_LIST_DIR}/set_flags.cmake) |
