build failure on gcc10
Andreas Schwab
schwab@linux-m68k.org
Mon Jan 25 13:31:07 GMT 2021
On Jan 25 2021, Paul Zimmermann wrote:
> ../sysdeps/x86/cacheinfo.c:81:5: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types]
> = __x86_cacheinfo;
> ^~~~~~~~~~~~~~~
Does that help?
diff --git a/sysdeps/x86/cacheinfo.c b/sysdeps/x86/cacheinfo.c
index 350cba5fda..7b8df45e3b 100644
--- a/sysdeps/x86/cacheinfo.c
+++ b/sysdeps/x86/cacheinfo.c
@@ -77,7 +77,7 @@ __cache_sysconf (int name)
# include <ifunc-init.h>
extern void __x86_cacheinfo (void) attribute_hidden;
-const void (*__x86_cacheinfo_p) (void) attribute_hidden
+void (*const __x86_cacheinfo_p) (void) attribute_hidden
= __x86_cacheinfo;
__ifunc (__x86_cacheinfo, __x86_cacheinfo, NULL, void, init_cacheinfo);
--
2.30.0
Andreas.
--
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1
"And now for something completely different."
More information about the Libc-alpha
mailing list