ADD_DEFINITIONS("-fPIC") # Position Independent Code
ADD_DEFINITIONS("-Werror") # Make all warnings into errors
ADD_DEFINITIONS("-Wall") # Generate all warnings
-#ADD_DEFINITIONS("-Wextra") # Generate even more extra warnings
-#ADD_DEFINITIONS("-pedantic") # Be pedantic
-#ADD_DEFINITIONS("-pedantic-errors") # Make pedantic warnings into errors
+ADD_DEFINITIONS("-Wextra") # Generate even more extra warnings
+# TODO Remove 'no-unused-parameter' after API implementation
+ADD_DEFINITIONS("-Wno-unused-parameter") # Supress unused parameter warning
+ADD_DEFINITIONS("-pedantic") # Be pedantic
+ADD_DEFINITIONS("-pedantic-errors") # Make pedantic warnings into errors
ADD_DEFINITIONS(-DPROJECT_SOURCE_DIR="${PROJECT_SOURCE_DIR}")
IF("${CMAKE_C_COMPILER_ID}" STREQUAL "Clang")
# Warn about documentation problems
- SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wdocumentation")
+ ADD_DEFINITIONS("-Wdocumentation")
# Enable all diagnostics
- #SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Weverything")
+ #ADD_DEFINITIONS("-Weverything")
ENDIF()
## Subdirectories ##############################################################