aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/x86
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2020-04-30 21:12:23 +0200
committerFlorian Weimer <fweimer@redhat.com>2020-04-30 21:16:47 +0200
commit19108a38325c6ecb33e8d216ee1056e2732bc20f (patch)
treee3a2fee4a86442f6ba191623cbe9b4f04938e0a3 /sysdeps/x86
parentff026950e280bc3e9487b41b460fb31bc5b57721 (diff)
downloadglibc-19108a38325c6ecb33e8d216ee1056e2732bc20f.tar
glibc-19108a38325c6ecb33e8d216ee1056e2732bc20f.tar.gz
glibc-19108a38325c6ecb33e8d216ee1056e2732bc20f.tar.bz2
glibc-19108a38325c6ecb33e8d216ee1056e2732bc20f.zip
i386: Remove unused variable in sysdeps/x86/cacheinfo.c
Commit a98dc92dd1e278df4c501deb07985018bc2b06de ("x86: Add cache information support for Zhaoxin processors") introduced an unused variable warning in the default i686-linux-gnu build: In file included from ../sysdeps/i386/cacheinfo.c:3: ../sysdeps/x86/cacheinfo.c: In function 'init_cacheinfo': ../sysdeps/x86/cacheinfo.c:762:16: error: unused variable 'eax' [-Werror=unused-variable] 762 | unsigned int eax; | ^~~
Diffstat (limited to 'sysdeps/x86')
-rw-r--r--sysdeps/x86/cacheinfo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sysdeps/x86/cacheinfo.c b/sysdeps/x86/cacheinfo.c
index 17d7e41aed..311502dee3 100644
--- a/sysdeps/x86/cacheinfo.c
+++ b/sysdeps/x86/cacheinfo.c
@@ -759,7 +759,6 @@ __attribute__((constructor))
init_cacheinfo (void)
{
/* Find out what brand of processor. */
- unsigned int eax;
unsigned int ebx;
unsigned int ecx;
unsigned int edx;
@@ -830,6 +829,7 @@ init_cacheinfo (void)
#ifndef DISABLE_PREFETCHW
if (max_cpuid_ex >= 0x80000001)
{
+ unsigned int eax;
__cpuid (0x80000001, eax, ebx, ecx, edx);
/* PREFETCHW || 3DNow! */
if ((ecx & 0x100) || (edx & 0x80000000))