different warning message

This commit is contained in:
Wolfgang (Blub) Bumiller 2012-08-14 17:08:00 +02:00
parent ca1c9b921d
commit c4cd49a408

View file

@ -1379,7 +1379,7 @@ static bool parser_parse_statement(parser_t *parser, ast_block *block, ast_expre
else if (!strcmp(parser_tokval(parser), "for"))
{
if (opts_standard == COMPILER_QCC) {
if (parsewarning(parser, WARN_EXTENSIONS, "there's no for-loop in -std=qcc"))
if (parsewarning(parser, WARN_EXTENSIONS, "for loops are not recognized in the original Quake C standard, to enable try an alternate standard --std=?"))
return false;
}
return parser_parse_for(parser, block, out);