]> git.xonotic.org Git - xonotic/gmqcc.git/commitdiff
Another case for -fassign-function-types
authorWolfgang (Blub) Bumiller <blub@speed.at>
Sun, 25 Nov 2012 22:28:47 +0000 (23:28 +0100)
committerWolfgang (Blub) Bumiller <blub@speed.at>
Sun, 25 Nov 2012 22:28:47 +0000 (23:28 +0100)
parser.c

index 2af798bb837a4bd496efa605ec8676f136033dc5..338993ac4fa773a4d283fd389ed233784b4739b0 100644 (file)
--- 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)
                     {