summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikolai Merinov <n.merinov@samsung.com>2019-02-11 08:19:31 +0300
committerNikolai Merinov <n.merinov@samsung.com>2019-02-11 08:24:11 +0300
commit232e3a46e8eab30376c1685451842bdeb11bef48 (patch)
tree0cf4767167bfb24bb6add2139cccf5f7107843fa
parenta4650d950cf2793c184cadef052164c339c9e611 (diff)
downloadprivacy-setting-sandbox/nmerinov/llvm.tar.gz
privacy-setting-sandbox/nmerinov/llvm.tar.bz2
privacy-setting-sandbox/nmerinov/llvm.zip
Disable clang specific warningssandbox/nmerinov/llvm
-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")