Suppress build warning in test code 61/223461/2
authorDongsun Lee <ds73.lee@samsung.com>
Thu, 30 Jan 2020 02:37:27 +0000 (11:37 +0900)
committerDongsun Lee <ds73.lee@samsung.com>
Thu, 30 Jan 2020 02:38:18 +0000 (11:38 +0900)
Change-Id: I9245ea61b2725648fb5191751fd38b1b0616d720
Signed-off-by: Dongsun Lee <ds73.lee@samsung.com>
packaging/drm-service-core-tizen.spec

index 94c6e54..a6f8bc7 100755 (executable)
@@ -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} \