[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Minios-devel] [PATCH] lib/sys.c: enclose file_types in define guards



On Fri, May 13, 2016 at 05:58:56PM +0200, Samuel Thibault wrote:
> Wei Liu, on Fri 13 May 2016 16:52:04 +0100, wrote:
> > otherwise some build environments complain file_types array is defined
> > but not used.
> > 
> > Signed-off-by: Wei Liu <wei.liu2@xxxxxxxxxx>
> 
> Acked-by: Samuel Thibault <samuel.thibault@xxxxxxxxxxxx>

Thanks for the quick response. I will push this soon.

> 
> > ---
> >  lib/sys.c | 2 ++
> >  1 file changed, 2 insertions(+)
> > 
> > diff --git a/lib/sys.c b/lib/sys.c
> > index f8d7a7c..1420722 100644
> > --- a/lib/sys.c
> > +++ b/lib/sys.c
> > @@ -634,6 +634,7 @@ int closedir(DIR *dir)
> >  
> >  /* We assume that only the main thread calls select(). */
> >  
> > +#if defined(LIBC_DEBUG) || defined(LIBC_VERBOSE)
> >  static const char file_types[] = {
> >      [FTYPE_NONE]   = 'N',
> >      [FTYPE_CONSOLE]        = 'C',
> > @@ -646,6 +647,7 @@ static const char file_types[] = {
> >      [FTYPE_KBD]            = 'K',
> >      [FTYPE_FB]             = 'G',
> >  };
> > +#endif
> >  #ifdef LIBC_DEBUG
> >  static void dump_set(int nfds, fd_set *readfds, fd_set *writefds, fd_set 
> > *exceptfds, struct timeval *timeout)
> >  {
> > -- 
> > 2.1.4
> > 
> 
> -- 
> Samuel
> <r> make
> <r> oops
> <m> make clean

_______________________________________________
Minios-devel mailing list
Minios-devel@xxxxxxxxxxxxxxxxxxxx
http://lists.xenproject.org/cgi-bin/mailman/listinfo/minios-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.