From: Wolfgang (Blub) Bumiller Date: Sun, 25 Nov 2012 22:28:47 +0000 (+0100) Subject: Another case for -fassign-function-types X-Git-Tag: 0.1.9~217 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=38df8b5e405eac2032410a5534789245ae176b46;p=xonotic%2Fgmqcc.git Another case for -fassign-function-types --- diff --git a/parser.c b/parser.c index 2af798b..338993a 100644 --- a/parser.c +++ b/parser.c @@ -939,7 +939,7 @@ static bool parser_sy_pop(parser_t *parser, shunt *sy) else if (!ast_compare_type(exprs[0], exprs[1])) { ast_type_to_string(exprs[0], ty1, sizeof(ty1)); ast_type_to_string(exprs[1], ty2, sizeof(ty2)); - if (opts_standard == COMPILER_QCC && + if (OPTS_FLAG(ASSIGN_FUNCTION_TYPES) && exprs[0]->expression.vtype == TYPE_FUNCTION && exprs[1]->expression.vtype == TYPE_FUNCTION) {