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

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