diff options
Diffstat (limited to 'gcc/c/c-decl.c')
-rw-r--r-- | gcc/c/c-decl.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/c/c-decl.c b/gcc/c/c-decl.c index 6aac8c36157..383f0a766bf 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; |