summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CMakeLists.txt9
1 files changed, 6 insertions, 3 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 9d2bd93..57dd623 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -6,9 +6,9 @@ INCLUDE(FindPkgConfig)
STRING(REGEX MATCH "([^.]*)" SO_VERSION "${VERSION}")
# Set compiler flags
-SET(CMAKE_C_FLAGS_RELEASE "-O2 -Wall")
-SET(CMAKE_C_FLAGS_DEBUG "-O0 -Wall -g -ggdb")
-SET(CMAKE_C_FLAGS_CCOV "-O2 -Wall --coverage")
+SET(CMAKE_C_FLAGS_RELEASE "-O2 -Wall -Wno-missing-field-initializers -Wno-missing-braces -Wno-duplicate-decl-specifier")
+SET(CMAKE_C_FLAGS_DEBUG "-O0 -Wall -Wno-missing-field-initializers -Wno-missing-braces -Wno-duplicate-decl-specifier -g -ggdb")
+SET(CMAKE_C_FLAGS_CCOV "-O2 -Wall -Wno-missing-field-initializers -Wno-missing-braces -Wno-duplicate-decl-specifier --coverage")
ADD_DEFINITIONS("-Werror") # Make all warnings into errors.
ADD_DEFINITIONS("-Wall") # Generate all warnings
@@ -16,6 +16,9 @@ ADD_DEFINITIONS("-Wextra") # Generate even more extra warni
ADD_DEFINITIONS("-Wno-unused-parameter") # Ignore unused parameter
ADD_DEFINITIONS("-Wno-unused-function")
ADD_DEFINITIONS("-Wno-unused-variable")
+ADD_DEFINITIONS("-Wno-missing-field-initializers")
+ADD_DEFINITIONS("-Wno-missing-braces")
+ADD_DEFINITIONS("-Wno-duplicate-decl-specifier")
# Set linker flags
SET(CMAKE_SHARED_LINKER_FLAGS "-Wl,--as-needed")