diff options
Diffstat (limited to 'gcc/c-lang.c')
-rw-r--r-- | gcc/c-lang.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gcc/c-lang.c b/gcc/c-lang.c index 87c65fb..53ebdab 100644 --- a/gcc/c-lang.c +++ b/gcc/c-lang.c @@ -70,10 +70,11 @@ c_init () { c_common_lang_init (); - /* If still unspecified, make it match pedantic && -std=c99. */ + /* If still unspecified, make it match -std=c99 + (allowing for -pedantic-errors). */ if (mesg_implicit_function_declaration < 0) { - if (pedantic && flag_isoc99) + if (flag_isoc99) mesg_implicit_function_declaration = flag_pedantic_errors ? 2 : 1; else mesg_implicit_function_declaration = 0; |