]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Mark argument as unused
authorJan-Benedict Glaw <jbglaw@lug-owl.de>
Tue, 5 Oct 2021 15:16:49 +0000 (17:16 +0200)
committerJan-Benedict Glaw <jbglaw@lug-owl.de>
Tue, 5 Oct 2021 15:20:05 +0000 (17:20 +0200)
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.

gcc/common/config/avr/avr-common.c

index 6486659d27cde8b42e8b3af0730bd4b323cc135a..a6939ad03d3988e9cccffdf928acd54bc44497a1 100644 (file)
@@ -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;