]> git.xonotic.org Git - xonotic/gmqcc.git/commitdiff
parsewarning->compile_warning
authorWolfgang Bumiller <blub@speed.at>
Sun, 13 Jan 2013 16:32:54 +0000 (17:32 +0100)
committerWolfgang Bumiller <blub@speed.at>
Sun, 13 Jan 2013 16:32:54 +0000 (17:32 +0100)
parser.c

index 05fa142a55e693c0159c6f9f894abe4f4a36eef9..b2e2abd7fff2c6b0a087c02271e3761deeb33a0a 100644 (file)
--- a/parser.c
+++ b/parser.c
@@ -1096,8 +1096,8 @@ static bool parser_sy_apply_operator(parser_t *parser, shunt *sy)
                         field->expression.next->expression.vtype == TYPE_FUNCTION &&
                         exprs[1]->expression.vtype == TYPE_FUNCTION)
                     {
-                        (void)!parsewarning(parser, WARN_ASSIGN_FUNCTION_TYPES,
-                                            "invalid types in assignment: cannot assign %s to %s", ty2, ty1);
+                        (void)!compile_warning(ctx, WARN_ASSIGN_FUNCTION_TYPES,
+                                               "invalid types in assignment: cannot assign %s to %s", ty2, ty1);
                     }
                     else
                         compile_error(ctx, "invalid types in assignment: cannot assign %s to %s", ty2, ty1);
@@ -1128,8 +1128,8 @@ static bool parser_sy_apply_operator(parser_t *parser, shunt *sy)
                         exprs[0]->expression.vtype == TYPE_FUNCTION &&
                         exprs[1]->expression.vtype == TYPE_FUNCTION)
                     {
-                        (void)!parsewarning(parser, WARN_ASSIGN_FUNCTION_TYPES,
-                                            "invalid types in assignment: cannot assign %s to %s", ty2, ty1);
+                        (void)!compile_warning(ctx, WARN_ASSIGN_FUNCTION_TYPES,
+                                               "invalid types in assignment: cannot assign %s to %s", ty2, ty1);
                     }
                     else
                         compile_error(ctx, "invalid types in assignment: cannot assign %s to %s", ty2, ty1);