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 <tpi...@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 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel