Another hardcoded -std=gmqcc option removed and added to the implied -std=gmqcc flags

This commit is contained in:
Wolfgang Bumiller 2012-12-31 12:43:15 +01:00
parent 0626bbef8e
commit 0920cb6ec4
2 changed files with 2 additions and 2 deletions

1
main.c
View file

@ -163,6 +163,7 @@ static bool options_parse(int argc, char **argv) {
opts_set(opts.flags, FALSE_EMPTY_STRINGS, false);
opts_set(opts.flags, TRUE_EMPTY_STRINGS, true);
opts_set(opts.flags, LOOP_LABELS, true);
opts_set(opts.flags, INITIALIZED_NONCONSTANTS, true);
opts_set(opts.werror, WARN_INVALID_PARAMETER_COUNT, true);
opts_set(opts.werror, WARN_MISSING_RETURN_VALUES, true);
opts.standard = COMPILER_GMQCC;

View file

@ -4892,8 +4892,7 @@ skipvar:
}
else
{
if (opts.standard != COMPILER_GMQCC &&
!OPTS_FLAG(INITIALIZED_NONCONSTANTS) &&
if (!OPTS_FLAG(INITIALIZED_NONCONSTANTS) &&
qualifier != CV_VAR)
{
var->cvq = CV_CONST;