[YBA] kernel compile errors with GCC >= 4.6
Nadav Har'El
nyh at math.technion.ac.il
Thu Apr 5 11:04:32 IDT 2012
On Wed, Apr 04, 2012, Baruch Siach wrote about "Re: [YBA] kernel compile errors with GCC >= 4.6":
> > I would be very much surprised if the kernel could not be built with
> > gcc-4.6 - this is stock on Fedora, so lots of people must be using it.
> > Maybe not on PowerPC, though
>
> Recent kernel versions surely have all these warnings fixed. The kernel in
> question, I suppose, is quite ancient.
Unless a new compiler or optimizer suddenly became "smarter" and
recognized some new possible mistakes that the previous one didn't.
Or, in the case of this bug (see the link that someone gave earlier in
this thread), that the warning only happens in some rare combination of
#ifdefs, where, for example, some variable is defined but never used.
Since the goal of the user is to *use* the program (not debug it), and
since issues like unused-but-set variables certainly don't prevent
the program from being used, I think it's stupid for the user's
compilation to abort when the compiler discovers such issues
Down with -Wall -Werror!
--
Nadav Har'El | Thursday, Apr 5 2012,
nyh at math.technion.ac.il |-----------------------------------------
Phone +972-523-790466, ICQ 13349191 |Don't be irreplaceable. If you can't be
http://nadav.harel.org.il |replaced, you can't be promoted.
More information about the Linux-il
mailing list