Date: Sun, 6 Oct 1996 12:51:06 +1000 From: Bruce Evans <bde@zeta.org.au> To: current@FreeBSD.ORG, sprice@hiwaay.net Subject: Re: compiling -current with -Dlint Message-ID: <199610060251.MAA08128@godzilla.zeta.org.au>
next in thread | raw e-mail | index | archive | help
>Has anybody tried to compile src/lib/csu/i386/crt0.c with -Dlint >lately? I just did to get rid of the warning messages about Apparently not. >"'sccsid' defined but not used" (I **hate** seeing bogus warning >messages) while make'ing world and here is what I saw. Id strings should be declared as const and possibly as __unused, and possibly in a macro so that the details can be changed. >Here is the offending code (from ctr0.c): > >#ifdef lint > kfp = 0; > initcode = initcode = 0; >#else /* not lint */ > /* just above the saved frame pointer */ > asm ("lea 4(%%ebp), %0" : "=r" (kfp) ); >#endif /* not lint */ > >It doesn't appear from 'cvs log' output that the crt0.c file has >changed recently. Any startup code gurus know where initcode >is/was declared? Or can it safely be removed? Initcode is garbage. Bruce
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199610060251.MAA08128>