]> git.xonotic.org Git - xonotic/gmqcc.git/blobdiff - ftepp.c
Add seperate warning flag for directive in macro.
[xonotic/gmqcc.git] / ftepp.c
diff --git a/ftepp.c b/ftepp.c
index a2bbb684681893f27c68f00717ec0db16b8ed151..050d6d81b92f8f9f2f3a1b8371bd1da77b7d6d84 100644 (file)
--- a/ftepp.c
+++ b/ftepp.c
@@ -1525,7 +1525,7 @@ static bool ftepp_else_allowed(ftepp_t *ftepp)
 
 static GMQCC_INLINE void ftepp_inmacro(ftepp_t *ftepp, const char *hash) {
     if (ftepp->in_macro)
-        (void)!ftepp_warn(ftepp, WARN_CPP, "`#%s` directive in macro", hash);
+        (void)!ftepp_warn(ftepp, WARN_DIRECTIVE_INMACRO, "`#%s` directive in macro", hash);
 }
 
 static bool ftepp_hash(ftepp_t *ftepp)