From: Andreas Jaeger Date: Mon, 21 May 2012 20:27:11 +0000 (+0200) Subject: Fix warnings in wcschr-c.c X-Git-Tag: glibc-2.16-tps~224 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d8d1017e5ea0b5478a3c571fe12a233c9450d41b;p=thirdparty%2Fglibc.git Fix warnings in wcschr-c.c Fixes: In file included from ../sysdeps/i386/i686/multiarch/wcschr-c.c:8:0: ../wcsmbs/wcschr.c:26:1: warning: function declaration isn’t a prototype [-Wstrict-prototypes] ../wcsmbs/wcschr.c:37:1: warning: data definition has no type or storage class [enabled by default] ../wcsmbs/wcschr.c:37:1: warning: type defaults to ‘int’ in declaration of ‘__hidden_ver1’ [enabled by default] ../wcsmbs/wcschr.c:37:1: warning: parameter names (without types) in function declaration [enabled by default] --- diff --git a/ChangeLog b/ChangeLog index 0c25bc33ee4..dbf2fa289f0 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2012-05-21 Andreas Jaeger + + * sysdeps/i386/i686/multiarch/wcschr-c.c: Redefine libc_hidden_def + only if [SHARED]. Add prototype for __wcschr_ia32. + 2012-05-21 Roland McGrath * sysdeps/x86_64/setjmp.S [PTR_MANGLE] [__ILP32__]: Preserve high bits diff --git a/sysdeps/i386/i686/multiarch/wcschr-c.c b/sysdeps/i386/i686/multiarch/wcschr-c.c index a63e50e2836..c23af26201e 100644 --- a/sysdeps/i386/i686/multiarch/wcschr-c.c +++ b/sysdeps/i386/i686/multiarch/wcschr-c.c @@ -1,8 +1,14 @@ +#include + #ifndef NOT_IN_libc -# undef libc_hidden_def -# define libc_hidden_def(name) \ - __hidden_ver1 (__wcschr_ia32, __GI_wcschr, __wcschr_ia32); +# ifdef SHARED +# undef libc_hidden_def +# define libc_hidden_def(name) \ + __hidden_ver1 (__wcschr_ia32, __GI_wcschr, __wcschr_ia32); +# endif # define WCSCHR __wcschr_ia32 #endif +extern __typeof (wcschr) __wcschr_ia32; + #include "wcsmbs/wcschr.c"