diff options
Diffstat (limited to 'gcc/c')
-rw-r--r-- | gcc/c/ChangeLog | 7 | ||||
-rw-r--r-- | gcc/c/c-typeck.c | 2 |
2 files changed, 8 insertions, 1 deletions
diff --git a/gcc/c/ChangeLog b/gcc/c/ChangeLog index f1c4073..ebf9759 100644 --- a/gcc/c/ChangeLog +++ b/gcc/c/ChangeLog @@ -1,3 +1,10 @@ +2015-05-14 Marek Polacek <polacek@redhat.com> + + PR c/66066 + PR c/66127 + * c-typeck.c (digest_init): Call pedwarn_init with OPT_Wpedantic + rather than with 0. + 2015-05-12 David Malcolm <dmalcolm@redhat.com> * c-parser.c (c_parser_if_body): Add param "if_loc", use it diff --git a/gcc/c/c-typeck.c b/gcc/c/c-typeck.c index 3fcb7c2..9b883a2 100644 --- a/gcc/c/c-typeck.c +++ b/gcc/c/c-typeck.c @@ -6864,7 +6864,7 @@ digest_init (location_t init_loc, tree type, tree init, tree origtype, inside_init = error_mark_node; } else if (require_constant && !maybe_const) - pedwarn_init (init_loc, 0, + pedwarn_init (init_loc, OPT_Wpedantic, "initializer element is not a constant expression"); /* Added to enable additional -Wsuggest-attribute=format warnings. */ |