summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--packaging/capi-system-peripheral-io.spec4
1 files changed, 4 insertions, 0 deletions
diff --git a/packaging/capi-system-peripheral-io.spec b/packaging/capi-system-peripheral-io.spec
index 8ff648b..b0c4eb3 100644
--- a/packaging/capi-system-peripheral-io.spec
+++ b/packaging/capi-system-peripheral-io.spec
@@ -52,6 +52,10 @@ cp %{SOURCE11} .
cp %{SOURCE12} .
%build
+%{?asan:
+export CFLAGS+=" -Wno-format-truncation "
+export CXXFLAGS+=" -Wno-format-truncation "
+}
MAJORVER=`echo %{version} | awk 'BEGIN {FS="."}{print $1}'`
%cmake . -DMAJORVER=${MAJORVER} -DFULLVER=%{version} -DGCOV=%{gcov}