packaging: asan: skip Werror=maybe-uninitialized 53/319953/1 sandbox/dkson95/asan
authorDongkyun Son <dongkyun.s@samsung.com>
Tue, 5 Nov 2024 09:29:08 +0000 (18:29 +0900)
committerDongkyun Son <dongkyun.s@samsung.com>
Tue, 5 Nov 2024 10:25:56 +0000 (19:25 +0900)
Change-Id: I43f3271b7bb40510ef49e18184144e76cd9dbfbd
Signed-off-by: Dongkyun Son <dongkyun.s@samsung.com>
packaging/libwidget_service.spec

index 23189afcf32545027787e673d052ecf27728a6bd..6e680a8928b6c07f7d50f0e14a59def477c71cb6 100644 (file)
@@ -83,6 +83,9 @@ export CXXFLAGS+=" -fprofile-arcs -ftest-coverage"
 export FFLAGS+=" -fprofile-arcs -ftest-coverage"
 export LDFLAGS+=" -lgcov"
 %endif
+%if 0%{?asan:1}
+export CXXFLAGS+=" -Wno-maybe-uninitialized"
+%endif
 
 MAJORVER=`echo %{version} | awk 'BEGIN {FS="."}{print $1}'`
 %cmake . -DFULLVER=%{version} -DMAJORVER=${MAJORVER}