public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: "Ni, Ruiyu" <ruiyu.ni@intel.com>
To: "Carsey, Jaben" <jaben.carsey@intel.com>,
	"Tomas Pilar (tpilar)" <tpilar@solarflare.com>,
	"edk2-devel@lists.01.org" <edk2-devel@lists.01.org>
Subject: Re: [PATCH] ShellPkg: Mark InvalidCharacters[] in Shell.c as unused
Date: Wed, 26 Sep 2018 01:54:27 +0000	[thread overview]
Message-ID: <734D49CCEBEEF84792F5B80ED585239D5BE4DF32@SHSMSX104.ccr.corp.intel.com> (raw)
In-Reply-To: <CB6E33457884FA40993F35157061515CA414E57B@FMSMSX103.amr.corp.intel.com>

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


  reply	other threads:[~2018-09-26  1:56 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
2018-09-26  4:54   ` Ni, Ruiyu
2018-09-26 10:10     ` Tomas Pilar (tpilar)

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-list from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=734D49CCEBEEF84792F5B80ED585239D5BE4DF32@SHSMSX104.ccr.corp.intel.com \
    --to=devel@edk2.groups.io \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox