aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJan-Benedict Glaw <jbglaw@lug-owl.de>2021-10-05 17:16:49 +0200
committerJan-Benedict Glaw <jbglaw@lug-owl.de>2021-10-05 17:20:05 +0200
commit370374c4d91d83fb69d4b70dd4e48103114a903d (patch)
tree14dbc20c563179ed2926045bb8781cc85dfb9017 /gcc
parentf9e6f20f280daf74763cf3fe21f3c211d3d04620 (diff)
downloadgcc-370374c4d91d83fb69d4b70dd4e48103114a903d.zip
gcc-370374c4d91d83fb69d4b70dd4e48103114a903d.tar.gz
gcc-370374c4d91d83fb69d4b70dd4e48103114a903d.tar.bz2
Mark argument as unused
The `loc` argument may or may not be used, depending on some #ifdefs. Mark it as ATTRIBUTE_UNUSED, though it might be worth polishing the whole target hook to not depend on the #ifdef'ed code at all. gcc/ChangeLog: * common/config/avr/avr-common.c (avr_handle_option): Mark argument as ATTRIBUTE_UNUSED.
Diffstat (limited to 'gcc')
-rw-r--r--gcc/common/config/avr/avr-common.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/common/config/avr/avr-common.c b/gcc/common/config/avr/avr-common.c
index 6486659..a6939ad 100644
--- a/gcc/common/config/avr/avr-common.c
+++ b/gcc/common/config/avr/avr-common.c
@@ -77,7 +77,8 @@ static const struct default_options avr_option_optimization_table[] =
static bool
avr_handle_option (struct gcc_options *opts, struct gcc_options*,
- const struct cl_decoded_option *decoded, location_t loc)
+ const struct cl_decoded_option *decoded,
+ location_t loc ATTRIBUTE_UNUSED)
{
int value = decoded->value;