From ddd1bd9fbd84b29fb169e592943d1fdfc8ad0d7e Mon Sep 17 00:00:00 2001 From: Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> Date: Tue, 7 Apr 2026 14:13:38 +0200 Subject: removed -Werror=declaration-after-statement from net-snmp-config --cflags causing trouble in check_snmp.c (#2250) Co-authored-by: Andreas Baumann --- plugins/Makefile.am | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/Makefile.am b/plugins/Makefile.am index a35f273e..2bea8fc0 100644 --- a/plugins/Makefile.am +++ b/plugins/Makefile.am @@ -166,7 +166,7 @@ check_real_LDADD = $(NETLIBS) check_snmp_SOURCES = check_snmp.c check_snmp.d/check_snmp_helpers.c check_snmp_LDADD = $(BASEOBJS) check_snmp_LDFLAGS = $(AM_LDFLAGS) -lm `net-snmp-config --libs` -check_snmp_CFLAGS = $(AM_CFLAGS) `net-snmp-config --cflags` +check_snmp_CFLAGS = $(AM_CFLAGS) `net-snmp-config --cflags | sed 's/-Werror=declaration-after-statement//'` check_smtp_LDADD = $(SSLOBJS) check_ssh_LDADD = $(NETLIBS) check_swap_SOURCES = check_swap.c check_swap.d/swap.c -- cgit v1.2.3-74-g34f1