SET(CMAKE_BUILD_TYPE "Release" CACHE STRING "release")
IF(CMAKE_BUILD_TYPE STREQUAL "Release")
- SET(CMAKE_C_FLAGS "-std=c99 -fPIC -Wall -Werror -pedantic" CACHE STRING "compiler flags" FORCE)
+ SET(CMAKE_C_FLAGS "-std=c99 -fPIC -Wall -Wextra -Werror -pedantic" CACHE STRING "compiler flags" FORCE)
ENDIF()
IF(CMAKE_BUILD_TYPE STREQUAL "Debug")
- SET(CMAKE_C_FLAGS "-std=c99 -fPIC -Wall -pedantic -g" CACHE STRING "debug compiler flags" FORCE)
+ SET(CMAKE_C_FLAGS "-std=c99 -fPIC -Wall -Wextra -pedantic -g" CACHE STRING "debug compiler flags" FORCE)
ENDIF()
IF (RUN_TESTS)
-fprofile-arcs \
-ftest-coverage \
-Wall \
+-Wextra \
-pedantic \
-g \
-fsanitize=address \