From owner-freebsd-current Sat Oct 5 19:54:44 1996 Return-Path: owner-current Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id TAA01525 for current-outgoing; Sat, 5 Oct 1996 19:54:44 -0700 (PDT) Received: from godzilla.zeta.org.au (godzilla.zeta.org.au [203.2.228.19]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id TAA01503 for ; Sat, 5 Oct 1996 19:54:28 -0700 (PDT) Received: (from bde@localhost) by godzilla.zeta.org.au (8.7.6/8.6.9) id MAA08128; Sun, 6 Oct 1996 12:51:06 +1000 Date: Sun, 6 Oct 1996 12:51:06 +1000 From: Bruce Evans Message-Id: <199610060251.MAA08128@godzilla.zeta.org.au> To: current@FreeBSD.ORG, sprice@hiwaay.net Subject: Re: compiling -current with -Dlint Sender: owner-current@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk >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