Blame SOURCES/0002-build-don-t-suppress-various-warnings.patch

e0c819
From 8ed5b5a7bd803adea89597ceba2fc515fd74f487 Mon Sep 17 00:00:00 2001
e0c819
From: Sam James <sam@gentoo.org>
e0c819
Date: Thu, 24 Nov 2022 07:51:23 +0000
e0c819
Subject: [PATCH] build: don't suppress various warnings
e0c819
e0c819
These will become fatal with Clang 16 and GCC 14 anyway, but let's
e0c819
address the real problem (followup commit).
e0c819
e0c819
We do have to keep one wrt yyerror() & const char * though, but
e0c819
the issue is contained to the code Bison generates.
e0c819
e0c819
Closes: https://bugzilla.netfilter.org/show_bug.cgi?id=1637
e0c819
Signed-off-by: Sam James <sam@gentoo.org>
e0c819
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
e0c819
(cherry picked from commit 6fc886b7e9937aaae01a5da4eb217c5825020de3)
e0c819
---
e0c819
 src/Makefile.am | 2 +-
e0c819
 1 file changed, 1 insertion(+), 1 deletion(-)
e0c819
e0c819
diff --git a/src/Makefile.am b/src/Makefile.am
e0c819
index a1a91a0c8df66..2986ab3b4d4f9 100644
e0c819
--- a/src/Makefile.am
e0c819
+++ b/src/Makefile.am
e0c819
@@ -61,7 +61,7 @@ conntrackd_SOURCES += systemd.c
e0c819
 endif
e0c819
 
e0c819
 # yacc and lex generate dirty code
e0c819
-read_config_yy.o read_config_lex.o: AM_CFLAGS += -Wno-missing-prototypes -Wno-missing-declarations -Wno-implicit-function-declaration -Wno-nested-externs -Wno-undef -Wno-redundant-decls -Wno-sign-compare
e0c819
+read_config_yy.o read_config_lex.o: AM_CFLAGS += -Wno-incompatible-pointer-types -Wno-discarded-qualifiers
e0c819
 
e0c819
 conntrackd_LDADD = ${LIBMNL_LIBS} ${LIBNETFILTER_CONNTRACK_LIBS} \
e0c819
 		   ${libdl_LIBS} ${LIBNFNETLINK_LIBS}
e0c819
-- 
e0c819
2.38.0
e0c819