Subject: Re: -current hiccups
To: Hauke Fath <hauke@Espresso.Rhein-Neckar.DE>
From: Allen Briggs <briggs@ninthwonder.com>
List: current-users
Date: 07/20/1999 21:27:17
> -current says...
> 
> cc  -O2 -pipe -m68040 -Werror -Wall -Wstrict-prototypes -Wmissing-prototypes  -Wpointer-arith -msoft-float -I. -I../../../../arch -I../../../.. -nostdinc -DHZ="0x3c" -DM68040 -DM68030 -DFPSP -DNKMEMCLUSTERS="0x800" -DNMBCLUSTERS="0x800" -DNBUF="0x800" -DLKM -DDIAGNOSTIC -DDEBUG -DCOMPAT_14 -DMAXUSERS=32 -D_KERNEL -Dmac68k  -c ../../../../arch/mac68k/mac68k/pmap.c
> cc1: warnings being treated as errors
> ../../../../arch/mac68k/mac68k/pmap.c: In function `pmap_extract':
> ../../../../arch/mac68k/mac68k/pmap.c:1381: warning: `pa' might be used uninitialized in this function
> 
> *** Error code 1
> 
> Stop.

I just took a look at this.  The code is OK--the warning is bogus.  It
would be possible to change the code to initialize pa, but that's a bit
distasteful...  You can get rid of the error without changing the source
by:

	1. removing -Werror,
	2. adding -Wno-uninitialized, or
	3. removing options DEBUG.

-allen