mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2025-01-18 14:21:36 +00:00
s/WARN_PREPROCESSOR/WARN_CPP/g (to stay somewhat compatible with gcc/clang warnings for the preprocessor)
This commit is contained in:
parent
d61172598e
commit
76614b311e
3 changed files with 3 additions and 3 deletions
2
ftepp.c
2
ftepp.c
|
@ -481,7 +481,7 @@ static bool ftepp_define(ftepp_t *ftepp)
|
|||
case TOKEN_KEYWORD:
|
||||
macro = ftepp_macro_find(ftepp, ftepp_tokval(ftepp));
|
||||
if (macro && ftepp->output_on) {
|
||||
if (ftepp_warn(ftepp, WARN_PREPROCESSOR, "redefining `%s`", ftepp_tokval(ftepp)))
|
||||
if (ftepp_warn(ftepp, WARN_CPP, "redefining `%s`", ftepp_tokval(ftepp)))
|
||||
return false;
|
||||
ftepp_macro_delete(ftepp, ftepp_tokval(ftepp));
|
||||
}
|
||||
|
|
2
opts.c
2
opts.c
|
@ -46,7 +46,7 @@ static void opts_setdefault() {
|
|||
opts_set(opts.warn, WARN_EFFECTLESS_STATEMENT, true);
|
||||
opts_set(opts.warn, WARN_END_SYS_FIELDS, true);
|
||||
opts_set(opts.warn, WARN_ASSIGN_FUNCTION_TYPES, true);
|
||||
opts_set(opts.warn, WARN_PREPROCESSOR, true);
|
||||
opts_set(opts.warn, WARN_CPP, true);
|
||||
opts_set(opts.warn, WARN_MULTIFILE_IF, true);
|
||||
opts_set(opts.warn, WARN_DOUBLE_DECLARATION, true);
|
||||
opts_set(opts.warn, WARN_CONST_VAR, true);
|
||||
|
|
2
opts.def
2
opts.def
|
@ -72,7 +72,7 @@
|
|||
GMQCC_DEFINE_FLAG(EFFECTLESS_STATEMENT)
|
||||
GMQCC_DEFINE_FLAG(END_SYS_FIELDS)
|
||||
GMQCC_DEFINE_FLAG(ASSIGN_FUNCTION_TYPES)
|
||||
GMQCC_DEFINE_FLAG(PREPROCESSOR)
|
||||
GMQCC_DEFINE_FLAG(CPP)
|
||||
GMQCC_DEFINE_FLAG(MULTIFILE_IF)
|
||||
GMQCC_DEFINE_FLAG(DOUBLE_DECLARATION)
|
||||
GMQCC_DEFINE_FLAG(CONST_VAR)
|
||||
|
|
Loading…
Reference in a new issue