diff --git a/src/perl.c b/src/perl.c
index bb62267e89608166c70392ce52518fbd0ce74a51..d9e1e00fb75f927341401058f85e3b53a68c0718 100644 (file)
--- a/src/perl.c
+++ b/src/perl.c
#include <EXTERN.h>
#include <perl.h>
-#if __GNUC__
+#if defined(COLLECT_DEBUG) && COLLECT_DEBUG && defined(__GNUC__) && __GNUC__
# pragma GCC poison sprintf
#endif
else if (0 == strcasecmp (c->key, "Plugin"))
current_status = perl_config_plugin (aTHX_ c);
else
+ {
log_warn ("Ignoring unknown config key \"%s\".", c->key);
+ current_status = 0;
+ }
/* fatal error - it's up to perl_config_* to clean up */
if (0 > current_status) {