mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-30 22:43:12 +03:00
i386: Remove unused variable in sysdeps/x86/cacheinfo.c
Commit a98dc92dd1
("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;
| ^~~
This commit is contained in:
@ -759,7 +759,6 @@ __attribute__((constructor))
|
|||||||
init_cacheinfo (void)
|
init_cacheinfo (void)
|
||||||
{
|
{
|
||||||
/* Find out what brand of processor. */
|
/* Find out what brand of processor. */
|
||||||
unsigned int eax;
|
|
||||||
unsigned int ebx;
|
unsigned int ebx;
|
||||||
unsigned int ecx;
|
unsigned int ecx;
|
||||||
unsigned int edx;
|
unsigned int edx;
|
||||||
@ -830,6 +829,7 @@ init_cacheinfo (void)
|
|||||||
#ifndef DISABLE_PREFETCHW
|
#ifndef DISABLE_PREFETCHW
|
||||||
if (max_cpuid_ex >= 0x80000001)
|
if (max_cpuid_ex >= 0x80000001)
|
||||||
{
|
{
|
||||||
|
unsigned int eax;
|
||||||
__cpuid (0x80000001, eax, ebx, ecx, edx);
|
__cpuid (0x80000001, eax, ebx, ecx, edx);
|
||||||
/* PREFETCHW || 3DNow! */
|
/* PREFETCHW || 3DNow! */
|
||||||
if ((ecx & 0x100) || (edx & 0x80000000))
|
if ((ecx & 0x100) || (edx & 0x80000000))
|
||||||
|
Reference in New Issue
Block a user