From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=148.163.129.52; helo=dispatch1-us1.ppe-hosted.com; envelope-from=tpilar@solarflare.com; receiver=edk2-devel@lists.01.org Received: from dispatch1-us1.ppe-hosted.com (dispatch1-us1.ppe-hosted.com [148.163.129.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id D392A21155D4D for ; Tue, 25 Sep 2018 03:15:34 -0700 (PDT) X-Virus-Scanned: Proofpoint Essentials engine Received: from webmail.solarflare.com (webmail.solarflare.com [12.187.104.26]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by mx1-us3.ppe-hosted.com (Proofpoint Essentials ESMTP Server) with ESMTPS id 9445EB40057 for ; Tue, 25 Sep 2018 10:15:33 +0000 (UTC) Received: from tp-desktop.uk.solarflarecom.com (10.17.20.51) by ocex03.SolarFlarecom.com (10.20.40.36) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Tue, 25 Sep 2018 03:15:30 -0700 From: "Tomas Pilar (tpilar)" To: "edk2-devel@lists.01.org" Message-ID: <3570196b-4027-284a-e332-3121621bdc7e@solarflare.com> Date: Tue, 25 Sep 2018 11:15:28 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 X-Originating-IP: [10.17.20.51] X-TM-AS-Product-Ver: SMEX-12.5.0.1300-8.5.1010-24116.005 X-TM-AS-Result: No-1.241700-4.000000-10 X-TMASE-MatchedRID: t6JJoekIeTh6WEEZZrt3MhIRh9wkXSlFj/xLIaDSshECsxyhR8y7CcXR JNgWv23SIV4u8YKdeKsBtjkcfRMmqTJGiGi2yernngIgpj8eDcC063Wh9WVqglOq7rY3+Uqx+gt Hj7OwNO33FLeZXNZS4CiM3WUt6LtFZMLYqde0vYzrgViWQX2iFRH9+xk/yZMavAUxX1rU3pV/4z dy5YT6o4EtsBKxYxa7KHVpilh3ZzCO4L8svxbE1waGlXtVuRMm1u01mzofk1iRmE6ouoJ3jN2XK wPqPhWGiFYKw/Q3kCs= X-TM-AS-User-Approved-Sender: No X-TM-AS-User-Blocked-Sender: No X-TMASE-Result: 10--1.241700-4.000000 X-TMASE-Version: SMEX-12.5.0.1300-8.5.1010-24116.005 X-MDID: 1537870534-GAPvL8BK_sZx Subject: [PATCH] ShellPkg: Mark InvalidCharacters[] in Shell.c as unused X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 25 Sep 2018 10:15:35 -0000 Content-Type: text/plain; charset="windows-1252" Content-Language: en-US Content-Transfer-Encoding: 7bit This fixes unused const variable gcc 7.3 compilation error. Array is not simply removed as the list of invalid characters might be salient in future and for easy documentation. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Tomas Pilar --- ShellPkg/Application/Shell/Shell.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ShellPkg/Application/Shell/Shell.c b/ShellPkg/Application/Shell/Shell.c index 397cfd1994..38b002a144 100644 --- a/ShellPkg/Application/Shell/Shell.c +++ b/ShellPkg/Application/Shell/Shell.c @@ -2751,7 +2751,7 @@ RunCommand( } -STATIC CONST UINT16 InvalidChars[] = {L'*', L'?', L'<', L'>', L'\\', L'/', L'\"', 0x0001, 0x0002}; +STATIC CONST UINT16 InvalidChars[] __attribute__((unused)) = {L'*', L'?', L'<', L'>', L'\\', L'/', L'\"', 0x0001, 0x0002}; /** Function to process a NSH script file via SHELL_FILE_HANDLE. -- 2.17.1