Remove build warnings with gcc 6.2 46/131646/1
authorGihun Chang <gihun.chang@samsung.com>
Tue, 30 May 2017 08:35:23 +0000 (17:35 +0900)
committerGihun Chang <gihun.chang@samsung.com>
Tue, 30 May 2017 08:35:23 +0000 (17:35 +0900)
* 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

packaging/ttrace.spec

index e3b4b8dbedc5d964f85ad73e8affea1d3cef4281..a9bb9f6851ada92c1520c3f2ceedd05b4fc23048 100644 (file)
@@ -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}