summary refs log tree commit diff
path: root/sysdeps/i386
diff options
context:
space:
mode:
authorAndreas Jaeger <jaegerandi@gmail.com>2012-05-21 22:27:11 +0200
committerAndreas Jaeger <jaegerandi@gmail.com>2012-05-21 22:27:11 +0200
commitd8d1017e5ea0b5478a3c571fe12a233c9450d41b (patch)
treede85e3f17e8ce5a5ff483d65a16133ae22acfc60 /sysdeps/i386
parent6c7fb1458ddf7943dceac20440226d3d968e518d (diff)
downloadglibc-d8d1017e5ea0b5478a3c571fe12a233c9450d41b.tar.gz
glibc-d8d1017e5ea0b5478a3c571fe12a233c9450d41b.tar.xz
glibc-d8d1017e5ea0b5478a3c571fe12a233c9450d41b.zip
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]
Diffstat (limited to 'sysdeps/i386')
-rw-r--r--sysdeps/i386/i686/multiarch/wcschr-c.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/sysdeps/i386/i686/multiarch/wcschr-c.c b/sysdeps/i386/i686/multiarch/wcschr-c.c
index a63e50e283..c23af26201 100644
--- a/sysdeps/i386/i686/multiarch/wcschr-c.c
+++ b/sysdeps/i386/i686/multiarch/wcschr-c.c
@@ -1,8 +1,14 @@
+#include <wchar.h>
+
 #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"