Subject: lib/3890: lib/libc/gen/usleep.c compile chokes on unused rcsid
To: None <gnats-bugs@gnats.netbsd.org>
From: None <jbernard@tater.mines.edu>
List: netbsd-bugs
Date: 07/19/1997 08:30:05
>Number: 3890
>Category: lib
>Synopsis: unused rcsid causes compilation of usleep.c to fail
>Confidential: no
>Severity: serious
>Priority: high
>Responsible: lib-bug-people (Library Bug People)
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sat Jul 19 07:35:02 1997
>Last-Modified:
>Originator: Jim Bernard
>Organization:
speaking for myself
>Release: July 19, 1997
>Environment:
System: NetBSD zoo 1.2G NetBSD 1.2G (ZOO) #0: Sat Jul 12 16:26:42 MDT 1997 jim@zoo:/jaz/home/local/compile/sys/arch/i386/compile/ZOO i386
>Description:
cc -O -DNLS -DYP -DLIBC_SCCS -DSYSLIBC_SCCS -D_REENTRANT -I/jaz/home/local/compile/lib/libc/include -D__DBINTERFACE_PRIVATE -DPOSIX_MISTAKE -DFLOATING_POINT -Werror -Wall -Wstrict-prototypes -Wmissing-prototypes -c /jaz/home/local/compile/lib/libc/gen/usleep.c
cc1: warnings being treated as errors
/jaz/home/local/compile/lib/libc/gen/usleep.c:40: warning: `rcsid' defined but not used
*** Error code 1
Stop.
*** Error code 1
Stop.
*** Error code 1
Stop.
>How-To-Repeat:
make build
>Fix:
--- usleep.c-dist Sat Jul 19 05:12:44 1997
+++ usleep.c Sat Jul 19 08:24:57 1997
@@ -36,8 +36,9 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
+#include <sys/cdefs.h>
#if defined(LIBC_SCCS) && !defined(lint)
-static char rcsid[] = "$NetBSD: usleep.c,v 1.12 1997/07/19 02:42:32 jtc Exp $";
+__RCSID("$NetBSD: usleep.c,v 1.12 1997/07/19 02:42:32 jtc Exp $");
#endif /* LIBC_SCCS and not lint */
#include <time.h>
>Audit-Trail:
>Unformatted: