* [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
* Re: [PATCH] ShellPkg: Mark InvalidCharacters[] in Shell.c as unused
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
0 siblings, 2 replies; 5+ messages in thread
From: Carsey, Jaben @ 2018-09-25 14:50 UTC (permalink / raw)
To: Tomas Pilar (tpilar), edk2-devel@lists.01.org, Ni, Ruiyu
I would prefer we just delete this.
Ray,
What do you think?
> -----Original Message-----
> From: edk2-devel [mailto:edk2-devel-bounces@lists.01.org] On Behalf Of
> Tomas Pilar (tpilar)
> Sent: Tuesday, September 25, 2018 3:15 AM
> To: edk2-devel@lists.01.org
> Subject: [edk2] [PATCH] ShellPkg: Mark InvalidCharacters[] in Shell.c as
> unused
> Importance: High
>
> 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
>
> _______________________________________________
> edk2-devel mailing list
> edk2-devel@lists.01.org
> https://lists.01.org/mailman/listinfo/edk2-devel
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] ShellPkg: Mark InvalidCharacters[] in Shell.c as unused
2018-09-25 14:50 ` Carsey, Jaben
@ 2018-09-26 1:54 ` Ni, Ruiyu
2018-09-26 4:54 ` Ni, Ruiyu
1 sibling, 0 replies; 5+ messages in thread
From: Ni, Ruiyu @ 2018-09-26 1:54 UTC (permalink / raw)
To: Carsey, Jaben, Tomas Pilar (tpilar), edk2-devel@lists.01.org
I agree to delete it! We have git history which can tell us how to re-add them in future.:)
> -----Original Message-----
> From: Carsey, Jaben
> Sent: Tuesday, September 25, 2018 10:51 PM
> To: Tomas Pilar (tpilar) <tpilar@solarflare.com>; edk2-devel@lists.01.org; Ni,
> Ruiyu <ruiyu.ni@intel.com>
> Subject: RE: [edk2] [PATCH] ShellPkg: Mark InvalidCharacters[] in Shell.c as
> unused
>
> I would prefer we just delete this.
>
> Ray,
> What do you think?
>
> > -----Original Message-----
> > From: edk2-devel [mailto:edk2-devel-bounces@lists.01.org] On Behalf Of
> > Tomas Pilar (tpilar)
> > Sent: Tuesday, September 25, 2018 3:15 AM
> > To: edk2-devel@lists.01.org
> > Subject: [edk2] [PATCH] ShellPkg: Mark InvalidCharacters[] in Shell.c
> > as unused
> > Importance: High
> >
> > 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
> >
> > _______________________________________________
> > edk2-devel mailing list
> > edk2-devel@lists.01.org
> > https://lists.01.org/mailman/listinfo/edk2-devel
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] ShellPkg: Mark InvalidCharacters[] in Shell.c as unused
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)
1 sibling, 1 reply; 5+ messages in thread
From: Ni, Ruiyu @ 2018-09-26 4:54 UTC (permalink / raw)
To: Carsey, Jaben, Tomas Pilar (tpilar), edk2-devel@lists.01.org
On 9/25/2018 10:50 PM, Carsey, Jaben wrote:
> I would prefer we just delete this.
>
> Ray,
> What do you think?
>
Not sure I sent it or not.
I also prefer to delete it. Git history can help in future if we need it
again.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] ShellPkg: Mark InvalidCharacters[] in Shell.c as unused
2018-09-26 4:54 ` Ni, Ruiyu
@ 2018-09-26 10:10 ` Tomas Pilar (tpilar)
0 siblings, 0 replies; 5+ messages in thread
From: Tomas Pilar (tpilar) @ 2018-09-26 10:10 UTC (permalink / raw)
To: Ni, Ruiyu, Carsey, Jaben, edk2-devel@lists.01.org
Thanks, I'll respin.
On 26/09/18 05:54, Ni, Ruiyu wrote:
> On 9/25/2018 10:50 PM, Carsey, Jaben wrote:
>> I would prefer we just delete this.
>>
>> Ray,
>> What do you think?
>>
> Not sure I sent it or not.
> I also prefer to delete it. Git history can help in future if we need it again.
^ permalink raw reply [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