summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGihun Chang <gihun.chang@samsung.com>2017-05-30 17:35:23 +0900
committerGihun Chang <gihun.chang@samsung.com>2017-05-30 17:35:23 +0900
commitf4dc8f8166d34463ac1cbe4750fcadf5f364fc83 (patch)
tree9e16f0adbd6f9eb01336fadc8106a28f4c31242c
parentf63a34e62b61d1bee28d049873851897f86246f2 (diff)
downloadttrace-f4dc8f8166d34463ac1cbe4750fcadf5f364fc83.tar.gz
ttrace-f4dc8f8166d34463ac1cbe4750fcadf5f364fc83.tar.bz2
ttrace-f4dc8f8166d34463ac1cbe4750fcadf5f364fc83.zip
Remove build warnings with gcc 6.2
* warning: implicit declaration of function 'vsnprintf' [-Wimplicit-function-declaration] * warning: ignoring return value of 'int system(const char*)', declared with attribute warn_unused_result [-Wunused-result] Change-Id: Ie400cc8fea6b99d08ab935198b60ec1767ac75c6
-rw-r--r--packaging/ttrace.spec4
1 files changed, 2 insertions, 2 deletions
diff --git a/packaging/ttrace.spec b/packaging/ttrace.spec
index e3b4b8d..a9bb9f6 100644
--- a/packaging/ttrace.spec
+++ b/packaging/ttrace.spec
@@ -51,8 +51,8 @@ T-trace library devel
%setup -q
%build
-export CFLAGS="$CFLAGS -g -Wall -std=gnu99"
-export CXXFLAGS="$CXXFLAGS -std=c++0x -fPIE -pie -fno-exceptions"
+export CFLAGS="$CFLAGS -g -Wall -std=gnu99 -Wimplicit-function-declaration"
+export CXXFLAGS="$CXXFLAGS -std=c++0x -fPIE -pie -fno-exceptions -Wunused-result"
%cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix} -DLIBDIR=%{_libdir} -DINCLUDEDIR=%{_includedir} \
-DTTRACE_PROFILE=%{TTRACE_PROFILE} -DTTRACE_TIZEN_VERSION_MAJOR=%{TTRACE_TIZEN_VERSION_MAJOR}
make %{?jobs:-j%jobs}