Subject: Re: lib/30391: build.sh fails in lib/libc/string/wcschr.c
To: None <lib-bug-people@netbsd.org, gnats-admin@netbsd.org,>
From: Holger Weiss <holger@jhweiss.de>
List: netbsd-bugs
Date: 06/01/2005 18:29:02
The following reply was made to PR lib/30391; it has been noted by GNATS.
From: Holger Weiss <holger@jhweiss.de>
To: Julian Coleman <jdc@coris.org.uk>, gnats-bugs@netbsd.org
Cc:
Subject: Re: lib/30391: build.sh fails in lib/libc/string/wcschr.c
Date: Wed, 1 Jun 2005 20:28:08 +0200
* Julian Coleman <jdc@coris.org.uk> [2005-06-01 15:42]:
> > /usr/src/lib/libc/string/wcschr.c:47: warning: implicit declaration of function `__UNCONST'
>
> This should be fixed by pullup 1967 [*] for sys/sys/cdefs.h.
Yes, that fixed compilation of wcschr.c. AFAICS the __UNCONST()
declaration should be removed from lib/libc/stdio/vfprintf.c then.
Index: vfprintf.c
===================================================================
RCS file: /cvsroot/src/lib/libc/stdio/vfprintf.c,v
retrieving revision 1.46
diff -u -r1.46 vfprintf.c
--- vfprintf.c 3 Mar 2004 11:19:05 -0000 1.46
+++ vfprintf.c 1 Jun 2005 16:00:40 -0000
@@ -152,19 +152,6 @@
#endif /* FLOATING_POINT */
-#ifdef lint
-static __inline void *__UNCONST __P((const void *));
-static __inline void *
-__UNCONST(v)
- const void *v;
-{
- /* LINTED */
- return (void *) v;
-}
-#else
-#define __UNCONST(v) (void *)(v)
-#endif
-
/*
* Macros for converting digits to letters and vice versa
*/