From 7921f56dfaad304b973ce0b75da9fcaf65f180f2 Mon Sep 17 00:00:00 2001 From: Nikolai Merinov Date: Fri, 8 Feb 2019 15:42:02 +0300 Subject: Disable clang specific warnings --- build/tizen/CMakeLists.txt | 2 +- packaging/com.samsung.dali-demo.spec | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/build/tizen/CMakeLists.txt b/build/tizen/CMakeLists.txt index 08f1a790..068fc382 100644 --- a/build/tizen/CMakeLists.txt +++ b/build/tizen/CMakeLists.txt @@ -185,7 +185,7 @@ ENDIF(INTERNATIONALIZATION) ########################################################################### -SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${REQUIRED_CFLAGS} ${DALI_DEMO_CFLAGS} -Werror -Wall -fPIE") +SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${REQUIRED_CFLAGS} ${DALI_DEMO_CFLAGS} -Werror -Wall -fPIE -Wno-unused-const-variable -Wno-mismatched-tags -Wno-unused-private-field -Wno-unneeded-internal-declaration") SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${CMAKE_C_FLAGS}") INCLUDE_DIRECTORIES(${ROOT_SRC_DIR}) diff --git a/packaging/com.samsung.dali-demo.spec b/packaging/com.samsung.dali-demo.spec index 79870bbd..11e64441 100755 --- a/packaging/com.samsung.dali-demo.spec +++ b/packaging/com.samsung.dali-demo.spec @@ -61,7 +61,7 @@ of the capability of the toolkit. ############################## %build PREFIX="/usr" -CXXFLAGS+=" -Wall -g -O2" +CXXFLAGS+=" -Wall -g -O2 -Wno-unused-const-variable -Wno-mismatched-tags -Wno-unused-private-field -Wno-unneeded-internal-declaration" LDFLAGS+=" -Wl,--rpath=$PREFIX/lib -Wl,--as-needed" %ifarch %{arm} -- cgit v1.2.3