From: Dongsun Lee Date: Thu, 30 Jan 2020 02:37:27 +0000 (+0900) Subject: Suppress build warning in test code X-Git-Tag: accepted/tizen/6.0/unified/20201030.115134~1 X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fsecurity%2Fdrm-service-core-tizen.git;a=commitdiff_plain;h=ba0fbdd9709be8deca2f7787cb62aca1fa8f3879 Suppress build warning in test code Change-Id: I9245ea61b2725648fb5191751fd38b1b0616d720 Signed-off-by: Dongsun Lee --- diff --git a/packaging/drm-service-core-tizen.spec b/packaging/drm-service-core-tizen.spec index 94c6e54..a6f8bc7 100755 --- a/packaging/drm-service-core-tizen.spec +++ b/packaging/drm-service-core-tizen.spec @@ -53,6 +53,11 @@ export CFLAGS="$CFLAGS -DTIZEN_DEBUG_ENABLE" export CXXFLAGS="$CXXFLAGS -DTIZEN_DEBUG_ENABLE" export FFLAGS="$FFLAGS -DTIZEN_DEBUG_ENABLE" export LDFLAGS="$LDFLAGS -Wl,--rpath=%{_litdir}" +# To suppress the build warning in test code +%if 0%{?test_build_drm_service_core_tizen} +export CFLAGS="$CFLAGS -Wno-stringop-truncation -Wno-stringop-overflow -Wno-format-overflow" +export CXXFLAGS="$CXXFLAGS -Wno-stringop-truncation -Wno-stringop-overflow -Wno-format-overflow" +%endif MAJORVER=`echo %{version} | awk 'BEGIN {FS="."}{print $1}'` %cmake . -DFULLVER=%{version} \