[prev in list] [next in list] [prev in thread] [next in thread] 

List:       busybox
Subject:    Re: Fail to compile busybox 1.3.0 in gcc 3.2.2
From:       Denis Vlasenko <vda.linux () googlemail ! com>
Date:       2006-12-19 22:42:32
Message-ID: 200612192342.32317.vda.linux () googlemail ! com
[Download RAW message or body]

On Monday 18 December 2006 06:45, Yuwen Dai wrote:
> On 12/18/06, Steven Shiau <steven@nchc.org.tw> wrote:
> >
> > The attached file 2.patch does not work for gcc 3.2.2, I think it does
> > not include the patch for perror_nomsg.c.
> > However, this one works:
> > http://busybox.net/downloads/fixes-1.3.0/busybox-1.3.0.perror.patch
> 
> 
>  void bb_perror_nomsg(void)
> 
>  {
> -	/* Ignore the gcc warning about a null format string. */
> -	bb_perror_msg(NULL);
> +	bb_perror_msg(0);
>  }
> 
> Why don't use NULL here?

Because NULL is an undefined identifier in that file.
File has exactly zero #includes.
--
vda
_______________________________________________
busybox mailing list
busybox@busybox.net
http://busybox.net/cgi-bin/mailman/listinfo/busybox
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic