public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
* [PATCH] ShellPkg: Mark InvalidCharacters[] in Shell.c as unused
@ 2018-09-25 10:15 Tomas Pilar (tpilar)
  2018-09-25 14:50 ` Carsey, Jaben
  0 siblings, 1 reply; 5+ messages in thread
From: Tomas Pilar (tpilar) @ 2018-09-25 10:15 UTC (permalink / raw)
  To: edk2-devel@lists.01.org

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 <tpilar@solarflare.com>
---
 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



^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2018-09-26 10:10 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-09-25 10:15 [PATCH] ShellPkg: Mark InvalidCharacters[] in Shell.c as unused Tomas Pilar (tpilar)
2018-09-25 14:50 ` Carsey, Jaben
2018-09-26  1:54   ` Ni, Ruiyu
2018-09-26  4:54   ` Ni, Ruiyu
2018-09-26 10:10     ` Tomas Pilar (tpilar)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox