public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r12-4193] Mark argument as unused
@ 2021-10-05 15:20 Jan-Benedict Glaw
  0 siblings, 0 replies; only message in thread
From: Jan-Benedict Glaw @ 2021-10-05 15:20 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:370374c4d91d83fb69d4b70dd4e48103114a903d

commit r12-4193-g370374c4d91d83fb69d4b70dd4e48103114a903d
Author: Jan-Benedict Glaw <jbglaw@lug-owl.de>
Date:   Tue Oct 5 17:16:49 2021 +0200

    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.

Diff:
---
 gcc/common/config/avr/avr-common.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/gcc/common/config/avr/avr-common.c b/gcc/common/config/avr/avr-common.c
index 6486659d27c..a6939ad03d3 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;


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-10-05 15:20 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-05 15:20 [gcc r12-4193] Mark argument as unused Jan-Benedict Glaw

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).