diff options
Diffstat (limited to 'gcc/c')
-rw-r--r-- | gcc/c/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/c/c-decl.c | 4 |
2 files changed, 9 insertions, 0 deletions
diff --git a/gcc/c/ChangeLog b/gcc/c/ChangeLog index 2c5ba6d..15c2303 100644 --- a/gcc/c/ChangeLog +++ b/gcc/c/ChangeLog @@ -1,3 +1,8 @@ +2015-06-29 Manuel López-Ibáñez <manu@gcc.gnu.org> + + PR fortran/66605 + * c-decl.c (finish_function): Call do_warn_unused_parameter. + 2015-06-29 Marek Polacek <polacek@redhat.com> PR c/66322 diff --git a/gcc/c/c-decl.c b/gcc/c/c-decl.c index 6aac8c3..383f0a7 100644 --- a/gcc/c/c-decl.c +++ b/gcc/c/c-decl.c @@ -9028,6 +9028,10 @@ finish_function (void) function. */ maybe_warn_unused_local_typedefs (); + /* Possibly warn about unused parameters. */ + if (warn_unused_parameter) + do_warn_unused_parameter (fndecl); + /* Store the end of the function, so that we get good line number info for the epilogue. */ cfun->function_end_locus = input_location; |