Skip to content

Commit

Permalink
treat compiler warnings as errors
Browse files Browse the repository at this point in the history
  • Loading branch information
nielsheirman committed Mar 2, 2021
1 parent c48e6fa commit 972f227
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions stack/cmake/toolchains/gcc-arm-embedded.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ SET(CMAKE_SYSTEM_VERSION 1)
SET(CMAKE_CROSSCOMPILING 1)

# set compiler flags to optimize for code size
SET(CMAKE_C_FLAGS_DEBUG "-Og" CACHE STRING "")
SET(CMAKE_C_FLAGS_RELEASE "-Os" CACHE STRING "")
SET(CMAKE_C_FLAGS_DEBUG "-Og -Werror" CACHE STRING "")
SET(CMAKE_C_FLAGS_RELEASE "-Os -Werror" CACHE STRING "")

SET(TOOLCHAIN_DIR "" CACHE PATH "The directory containing all the cross compilation tools. (Compilation will fail if this is not set correctly)")

Expand Down

0 comments on commit 972f227

Please sign in to comment.