From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1474) id 9CAFC385840B; Tue, 5 Oct 2021 15:20:30 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 9CAFC385840B MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" From: Jan-Benedict Glaw To: gcc-cvs@gcc.gnu.org Subject: [gcc r12-4193] Mark argument as unused X-Act-Checkin: gcc X-Git-Author: Jan-Benedict Glaw X-Git-Refname: refs/heads/master X-Git-Oldrev: f9e6f20f280daf74763cf3fe21f3c211d3d04620 X-Git-Newrev: 370374c4d91d83fb69d4b70dd4e48103114a903d Message-Id: <20211005152030.9CAFC385840B@sourceware.org> Date: Tue, 5 Oct 2021 15:20:30 +0000 (GMT) X-BeenThere: gcc-cvs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Oct 2021 15:20:30 -0000 https://gcc.gnu.org/g:370374c4d91d83fb69d4b70dd4e48103114a903d commit r12-4193-g370374c4d91d83fb69d4b70dd4e48103114a903d Author: Jan-Benedict Glaw 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;