1
0
mirror of https://github.com/unrealircd/unrealircd.git synced 2026-07-08 00:23:13 +02:00

Disable the warning from 95f9c56a16

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.
This commit is contained in:
Bram Matthys
2019-09-18 20:09:10 +02:00
parent b24fe0f336
commit 4426cdacc9
+2
View File
@@ -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 '$' */
}
}