Skip to contentSkip to conversation

Makefile.am: don't silence -Wimplicit-function-declaration

PATCH In review Sam James 2 participants 2 messages Feb 7, 2024

Subsystems (2)
lore
Share & tools
lore

Sam James

author
#0 lore raw

PATCH 1/1 Makefile.am: don't silence -Wimplicit-function-declaration

This becomes an error in GCC 14 and Clang 16. It's a common misconception that these warnings are invalid or simply noise for Bison/parser files, but even if that were true, we'd need to handle it somehow anyway. Silencing them does nothing, so stop doing that.

Further, I don't actually get any warnings to fix with bison-3.8.2. This mirrors changes we've done in other netfilter.org projects.

---
 Makefile.am | 1 -
 1 file changed, 1 deletion(-)
Makefile.am +0 -1
index 0ed831a1..688a9849 100644
@@ -170,7 +170,6 @@ src_libparser_la_SOURCES = \
 
 src_libparser_la_CFLAGS = \
 	$(AM_CFLAGS) \
-	-Wno-implicit-function-declaration \
 	-Wno-missing-declarations \
 	-Wno-missing-prototypes \
 	-Wno-nested-externs \
Signature · 1 line
2.43.0
reviewer
#1 lore raw
Quoted 9 lines · Sam James

This becomes an error in GCC 14 and Clang 16. It's a common misconception that these warnings are invalid or simply noise for Bison/parser files, but even if that were true, we'd need to handle it somehow anyway. Silencing them does nothing, so stop doing that.

Further, I don't actually get any warnings to fix with bison-3.8.2. This mirrors changes we've done in other netfilter.org projects.

Patch applied, thanks!