Re: [PATCH] More compile warning fixes for 2.4.0

From: Rich Baum (baumr1@coral.indstate.edu)
Date: Mon Jan 08 2001 - 20:23:56 EST


On 8 Jan 2001, at 20:50, Erik Mouw wrote:

> On Sat, Jan 06, 2001 at 09:40:51PM -0500, Rich Baum wrote:
> > Here's a patch that fixes more of the compile warnings with gcc
> > 2.97.
>
> > - case FORE200E_STATE_BLANK:
> > + case FORE200E_STATE_BLANK:;
>
> Is this really a kernel bug? This is common idiom in C, so gcc
> shouldn't warn about it. If it does, it is a bug in gcc IMHO.
>
>
> Erik
> (compiling a GCC CVS snapshot to see if it really breaks)
>
> --
> J.A.K. (Erik) Mouw, Information and Communication Theory Group, Department
> of Electrical Engineering, Faculty of Information Technology and Systems,
> Delft University of Technology, PO BOX 5031, 2600 GA Delft, The Netherlands
> Phone: +31-15-2783635 Fax: +31-15-2781843 Email: J.A.K.Mouw@its.tudelft.nl
> WWW: http://www-ict.its.tudelft.nl/~erik/
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> Please read the FAQ at http://www.tux.org/lkml/

It still compiles and works just as well as it does without the patch.
 Without the patch it says:
warning: deprecated use of label at end of compound statement

My patches are basically telling the compiler to be quiet. If you
use egcs it won't give these warnings even if the code hasn't been
patched.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Mon Jan 15 2001 - 21:00:20 EST