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:
@@ -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 '$' */
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user