Fail to compile busybox 1.3.0 in gcc 3.2.2

Denis Vlasenko vda.linux at googlemail.com
Tue Dec 19 22:42:32 UTC 2006


On Monday 18 December 2006 06:45, Yuwen Dai wrote:
> On 12/18/06, Steven Shiau <steven at 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



More information about the busybox mailing list