[BusyBox] mkfs_minix bug

Erik Andersen andersen at lineo.com
Wed Jan 31 22:18:46 UTC 2001


On Wed Jan 31, 2001 at 01:47:49PM -0800, Matt Kraai wrote:
> On Wed, Jan 31, 2001 at 02:52:36PM -0600, David Douthitt wrote:
> > The latest busybox from CVS won't compile on my Debian 2.1 system now.
> > 
> > It generates this error:
> > 
> > mkfs_minix.c:258: parse error before `void'
> > mkfs_minix.c: In function `mkfs_minix_main':
> > mkfs_minix.c:744: warning: implicit declaration of function 
> > `show_usage'
> > make: ** [mkfs_minix.o] Error 1
> 
> Could you move the __attribute__ ((noreturn)) from the middle to
> the to the end of line 258 and see if that fixes the problem?

Hmm.  The would be a prse error.  I usually just put such
things into the function prototype...  How about the following:

    -static __attribute__ ((noreturn)) void show_usage()
    +static void show_usage() __attribute__ ((noreturn));
    +static void show_usage()

 -Erik

--
Erik B. Andersen   email:  andersen at lineo.com
--This message was written using 73% post-consumer electrons--





More information about the busybox mailing list