File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -13,8 +13,11 @@ set(C_STD gnu11)
1313IF (CMAKE_BUILD_TYPE STREQUAL "Debug" )
1414 message ("Debug build" )
1515 set (C_FLAGS_DEBUG " -O0 -g -fasynchronous-unwind-tables -fexceptions " )
16- set (C_FLAGS_WARNINGS " -Wall -Wextra -pedantic -Werror -Wformat=2 -Wconversion -Wdouble-promotion " )
17- #More flags to try (these report some new warnings): "-Wshadow -Wundef -Og"
16+ set (C_FLAGS_WARNINGS " -Wall -Wextra -pedantic -Werror -Wformat=2 -Wconversion -Wdouble-promotion \
17+ -Wcast-align -Wredundant-decls -Winline -Wdisabled-optimization -Wnested-externs " )
18+ #More flags to try (these report some new warnings!): -Og -Wshadow -Wundef -Wcast-qual
19+ # and some extras: -Wmissing-prototypes -Wmissing-declarations
20+
1821#-DCMAKE_BUILD_TYPE=Release
1922ELSE ()
2023 message ("Release build" )
You can’t perform that action at this time.
0 commit comments