From 0bb90f284ea344c6c119886d188c378c02e7cd1e Mon Sep 17 00:00:00 2001 From: "Wolfgang (Blub) Bumiller" Date: Sat, 10 Nov 2012 12:00:45 +0100 Subject: [PATCH] -std=qcc should error when the '=' is missing in a function declaration before the body --- parser.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/parser.c b/parser.c index ab1abeb..53e1ffb 100644 --- a/parser.c +++ b/parser.c @@ -2643,6 +2643,9 @@ skipvar: break; } } + else if (opts_standard == COMPILER_QCC) { + parseerror(parser, "expected '=' before function body in this standard"); + } if (parser->tok == '#') { ast_function *func; -- 2.39.2