Fail to compile busybox 1.3.0 in gcc 3.2.2
Yuwen Dai
yuwend at gmail.com
Sun Dec 17 21:45:19 PST 2006
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?
It seems gcc 3.3.5 or above is smarter on this. If I add another
parameter after `NULL', it'll warn:
warning: too many arguments for format
Otherwise, it just keeps silent.
--
Yuwen
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://busybox.net/lists/busybox/attachments/20061218/781afcac/attachment.html
More information about the busybox
mailing list