From b535374131220ea8178ef3423f0737829aee4296 Mon Sep 17 00:00:00 2001 From: Seonah Moon Date: Mon, 30 Dec 2019 14:01:11 +0900 Subject: [PATCH] gcc9: ignore build warnings iptables is OPENP package. So, This change adds exception options to CFLAGS. Change-Id: Ie73e24c0c52fbc19fb900c57954c1300ca8c7f46 --- packaging/iptables.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packaging/iptables.spec b/packaging/iptables.spec index edd3d30..982e24c 100755 --- a/packaging/iptables.spec +++ b/packaging/iptables.spec @@ -33,7 +33,7 @@ stable and may change with every new version. It is therefore unsupported. %build -export CFLAGS+=" $RPM_OPT_FLAGS -Wall -Werror -O2 -D_FORTIFY_SOURCE=2 -fstack-protector-strong -fPIE -pie -fno-strict-aliasing -Wno-unused-value -fPIC" +export CFLAGS+=" $RPM_OPT_FLAGS -Wall -Werror -O2 -D_FORTIFY_SOURCE=2 -fstack-protector-strong -fPIE -pie -fno-strict-aliasing -Wno-unused-value -Wno-stringop-truncation -Wno-format-truncation -fPIC" export LDFLAGS+=" -Wl,-z,relro,--as-needed" %autogen.sh -- 2.7.4