From e7f4b08ee9b36cc1fdb7d7f72013788a832a9f22 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Sat, 12 Nov 2011 00:50:26 -0500 Subject: [PATCH] Fix warnings in fallback C code of x86-32 wide memory functions --- ChangeLog | 4 ++++ sysdeps/i386/i686/multiarch/wcscmp-c.c | 4 ++++ sysdeps/i386/i686/multiarch/wcslen-c.c | 4 ++++ sysdeps/i386/i686/multiarch/wmemcmp-c.c | 4 ++++ 4 files changed, 16 insertions(+) diff --git a/ChangeLog b/ChangeLog index dd1e49f..192f38c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2011-11-12 Ulrich Drepper + * sysdeps/i386/i686/multiarch/wcscmp-c.c: Avoid warning. + * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise. + * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise. + * nis/nis_table.c (nis_list): Use variable of correct type for result of __follow_path call. diff --git a/sysdeps/i386/i686/multiarch/wcscmp-c.c b/sysdeps/i386/i686/multiarch/wcscmp-c.c index 53cc4e9..165c56a 100644 --- a/sysdeps/i386/i686/multiarch/wcscmp-c.c +++ b/sysdeps/i386/i686/multiarch/wcscmp-c.c @@ -1,3 +1,5 @@ +#include + #define WCSCMP __wcscmp_ia32 #ifdef SHARED # undef libc_hidden_def @@ -5,4 +7,6 @@ __hidden_ver1 (__wcscmp_ia32, __GI_wcscmp, __wcscmp_ia32); #endif +extern __typeof (wcscmp) __wcscmp_ia32; + #include "wcsmbs/wcscmp.c" diff --git a/sysdeps/i386/i686/multiarch/wcslen-c.c b/sysdeps/i386/i686/multiarch/wcslen-c.c index 49f32a2..8cebfea 100644 --- a/sysdeps/i386/i686/multiarch/wcslen-c.c +++ b/sysdeps/i386/i686/multiarch/wcslen-c.c @@ -1,5 +1,9 @@ +#include + #ifndef NOT_IN_libc # define WCSLEN __wcslen_ia32 #endif +extern __typeof (wcslen) __wcslen_ia32; + #include "wcsmbs/wcslen.c" diff --git a/sysdeps/i386/i686/multiarch/wmemcmp-c.c b/sysdeps/i386/i686/multiarch/wmemcmp-c.c index 94ff615..bd37660 100644 --- a/sysdeps/i386/i686/multiarch/wmemcmp-c.c +++ b/sysdeps/i386/i686/multiarch/wmemcmp-c.c @@ -1,5 +1,9 @@ +#include + #ifndef NOT_IN_libc # define WMEMCMP __wmemcmp_ia32 #endif +extern __typeof (wmemcmp) __wmemcmp_ia32; + #include "wcsmbs/wmemcmp.c" -- 2.7.4