[monitoring-plugins] removed -Wundef statement from net-snmp-config ...
Andreas Baumann
git at monitoring-plugins.org
Fri Jan 23 10:10:13 CET 2026
Module: monitoring-plugins
Branch: check_snmp_fixes
Commit: 38f601be58071da7a30caa442b5e997632f2dd6c
Author: Andreas Baumann <mail at andreasbaumann.cc>
Date: Fri Jan 23 10:04:33 2026 +0100
URL: https://www.monitoring-plugins.org/repositories/monitoring-plugins/commit/?id=38f601be
removed -Wundef statement from net-snmp-config --cflags causing wanings in clang macros in GNUlib
---
plugins/Makefile.am | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/plugins/Makefile.am b/plugins/Makefile.am
index 2bea8fc0..9aefcea0 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 | sed 's/-Werror=declaration-after-statement//'`
+check_snmp_CFLAGS = $(AM_CFLAGS) `net-snmp-config --cflags | sed 's/-Werror=declaration-after-statement//' | sed 's/-Wundef//'`
check_smtp_LDADD = $(SSLOBJS)
check_ssh_LDADD = $(NETLIBS)
check_swap_SOURCES = check_swap.c check_swap.d/swap.c
More information about the Commits
mailing list