From 4426cdacc928f87d8a9bf43ff5611bf05e699b4c Mon Sep 17 00:00:00 2001 From: Bram Matthys Date: Wed, 18 Sep 2019 20:09:10 +0200 Subject: [PATCH] Disable the warning from 95f9c56a16849fa2e93795d3d50cc5474267e68f that was not supposed to be committed :D It would also warn about if'd out blocks, which is confusing, so best to disable the warning altogether for now. --- src/conf_preprocessor.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/conf_preprocessor.c b/src/conf_preprocessor.c index 931d0a716..3270db171 100644 --- a/src/conf_preprocessor.c +++ b/src/conf_preprocessor.c @@ -539,6 +539,7 @@ void preprocessor_replace_defines(char **item, ConfigEntry *ce) value = get_config_define(varname+1); if (!value) { +#if 0 /* Complain about $VARS if they are not defined, but don't bother * for cases where it's clearly not a macro, eg. contains illegal * variable characters. @@ -548,6 +549,7 @@ void preprocessor_replace_defines(char **item, ConfigEntry *ce) config_warn("%s:%d: Variable %s used here but there's no @define for it earlier.", ce->ce_fileptr->cf_filename, ce->ce_varlinenum, varname); } +#endif value = varname; /* not found? then use varname, including the '$' */ } }