From: Wolfgang Bumiller Date: Sun, 13 Jan 2013 16:32:54 +0000 (+0100) Subject: parsewarning->compile_warning X-Git-Tag: before-library~270 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=12ffd83d4f87e9ef408faf3b171721bbdacc20e6;p=xonotic%2Fgmqcc.git parsewarning->compile_warning --- diff --git a/parser.c b/parser.c index 05fa142..b2e2abd 100644 --- 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);