From patchwork Thu Jan 11 09:59:21 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: YunQiang Su X-Patchwork-Id: 83871 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 437A33857038 for ; Thu, 11 Jan 2024 10:01:15 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 437A33857038 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1704967275; bh=TP0Jc36RFaVa3D3uzPcHXsiI5slbGDY6bQRuJowbquc=; h=From:To:Cc:Subject:Date:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From; b=vXNFesOTlt3xKwDgsz5G2XNi+Qy477ki1j7KE9/9GIL88rydarpxvfjnFZ+FiDULs hfbJ1q87Sd5u9JkFoHYwYWUOljjC7oLfTNL88YJ01xG04MYKlcAHPujfWyAfTFgm4M BFA7J51aDgYMvZ7u9QPkflZnzas2ajvc1XDXfESY= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-oi1-f177.google.com (mail-oi1-f177.google.com [209.85.167.177]) by sourceware.org (Postfix) with ESMTPS id C088638618B9; Thu, 11 Jan 2024 09:59:40 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org C088638618B9 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=gcc.gnu.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org C088638618B9 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=209.85.167.177 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1704967182; cv=none; b=MTUe0GJ9f5PHrqbkKg4DoslArdVwRetNhDOyxeiff7MfUm0Pt71u+oo1yqC4UDljMDtXTJ8aydbnl9xPeFdnZYNd8TSKVemg9CJp/ji9gVItqiRZaWhOi2yN12V5mnyUr1rOa1RvR7yOEehCsIjTKtUWcat7PvJU+oeyDlfcQVI= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1704967182; c=relaxed/simple; bh=DFQfjQX5KH7nU6iho8xQFUEUqipQTkfjPK9QlG2QfSU=; h=From:To:Subject:Date:Message-Id:MIME-Version; b=xIweUE1X8yUspM+7U9hmLLCVMd1GQNuH7+diyG6ALXan7vPjMW9X5IfZdJBtu1WUqv0lQkZHdKSoUkepgl1ZapM4Q3oNanSzd0tuwDL91lvc60xdyoIwM5ixAzPNuck8XCh2MvThxyIFV3ZdjsKvTGNI74ZdeofEWPONw5eZWHc= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-oi1-f177.google.com with SMTP id 5614622812f47-3bbbc6bcc78so4215163b6e.1; Thu, 11 Jan 2024 01:59:40 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704967179; x=1705571979; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=TP0Jc36RFaVa3D3uzPcHXsiI5slbGDY6bQRuJowbquc=; b=UpLFC2kZtQcYoQxK5aC5nW6tfvv3ru4qFXJMIVTv3YnkiFT1zYG5X28dtK7QkLI54V 0mt3rXnfGrEA415p6mu+LLhhkYAYWF09yPXz88q1NQ4qoKsukeHrEy2ISwyhZ8zBtsbi puwmX+QbEiWU7HqIDIdSYFUrRIyxn+B9aFK77nO+hLdi4Ffu6uKXLKM3l/6AZd6x16ff 7UjTIWq3n44FAihM3uaxbc5awuAmJYBinZ7awl5uxh8UUf9VqTdDWiTDGrSdFqxvbU++ niv2E/SVcU/8G0Vw20BXpaVk//nzgvrGsFenlQ7NlQNyoCEZgwTlaAxTnmkUXto1G49j Zfdw== X-Gm-Message-State: AOJu0YxoKOtDUpVNttHFNEPoZfWh2WNyWlC8O676VPso4Gn9gqDpTrK4 20FHzdcsoYaJcbuB/aJzlcXBPaQydks6nw== X-Google-Smtp-Source: AGHT+IGDbWzvK0ZSeH4eF4LdF5TaVBTSZM3vUklIdHXqWv3HZSbgf/VX6c8cR1whF2Ul1AUeucNm0w== X-Received: by 2002:a05:6808:3c43:b0:3bb:dfce:5906 with SMTP id gl3-20020a0568083c4300b003bbdfce5906mr1362220oib.110.1704967179506; Thu, 11 Jan 2024 01:59:39 -0800 (PST) Received: from localhost.localdomain ([149.248.38.156]) by smtp.gmail.com with ESMTPSA id x10-20020aa784ca000000b006d9c16b2089sm761243pfn.188.2024.01.11.01.59.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Jan 2024 01:59:39 -0800 (PST) From: YunQiang Su To: gcc-patches@gcc.gnu.org Cc: YunQiang Su Subject: [commit] MIPS: Add ATTRIBUTE_UNUSED to mips_start_function_definition Date: Thu, 11 Jan 2024 17:59:21 +0800 Message-Id: <20240111095922.2148110-1-syq@gcc.gnu.org> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 X-Spam-Status: No, score=-10.9 required=5.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM, GIT_PATCH_0, HEADER_FROM_DIFFERENT_DOMAINS, KAM_DMARC_STATUS, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gcc-patches-bounces+patchwork=sourceware.org@gcc.gnu.org Fix build warning: mips.cc: warning: unused parameter 'decl'. gcc * config/mips/mips.cc (mips_start_function_definition): Add ATTRIBUTE_UNUSED. --- gcc/config/mips/mips.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gcc/config/mips/mips.cc b/gcc/config/mips/mips.cc index 60b336e43d0..e752019b5e2 100644 --- a/gcc/config/mips/mips.cc +++ b/gcc/config/mips/mips.cc @@ -7330,7 +7330,8 @@ mips_start_unique_function (const char *name) function contains MIPS16 code. */ static void -mips_start_function_definition (const char *name, bool mips16_p, tree decl) +mips_start_function_definition (const char *name, bool mips16_p, + tree decl ATTRIBUTE_UNUSED) { if (mips16_p) fprintf (asm_out_file, "\t.set\tmips16\n");