summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikolai Merinov <n.merinov@samsung.com>2019-02-08 09:51:09 (GMT)
committerNikolai Merinov <n.merinov@samsung.com>2019-02-08 09:57:04 (GMT)
commit52693ff3ed4d56645d169e18544f1d0852c4691a (patch)
tree2e9c35172d9f8b7d8cdf9ca18cbb4c1f05959919
parentfe38f390b5e0162c0e03fd6cacc53d01c61b7d93 (diff)
downloadalarm-manager-sandbox/nmerinov/llvm.zip
alarm-manager-sandbox/nmerinov/llvm.tar.gz
alarm-manager-sandbox/nmerinov/llvm.tar.bz2
Disable clang specific warningssandbox/nmerinov/llvm
-rw-r--r--CMakeLists.txt2
-rw-r--r--src/CMakeLists.txt2
2 files changed, 2 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 733dcf3..239ab9e 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -18,7 +18,7 @@ INCLUDE(FindPkgConfig)
pkg_check_modules(pkgs REQUIRED ${DEPS_PKGS})
FOREACH(flag ${pkgs_CFLAGS})
- SET(EXTRA_CFLAGS "${EXTRA_CFLAGS} ${flag} -Wall -Werror")
+ SET(EXTRA_CFLAGS "${EXTRA_CFLAGS} ${flag} -Wall -Werror -Wno-unused-variable -Wno-constant-logical-operand")
ENDFOREACH(flag)
AUX_SOURCE_DIRECTORY(./ SRCS)
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index c28727d..35443da 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -21,7 +21,7 @@ ADD_CUSTOM_COMMAND(
../alarm_mgr.xml
COMMENT "Generating Server GDBus .c/.h")
-SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${EXTRA_CFLAGS} -Wall -Wno-unused -fvisibility=hidden")
+SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${EXTRA_CFLAGS} -Wall -Wno-unused -fvisibility=hidden -Wno-unused-variable")
ADD_LIBRARY(${this_target} SHARED ${LIB_SRCS} alarm-mgr-stub.c)