public inbox for glibc-cvs@sourceware.org
help / color / mirror / Atom feed
From: Florian Weimer <fw@sourceware.org>
To: glibc-cvs@sourceware.org
Subject: [glibc] i386: Remove unused variable in sysdeps/x86/cacheinfo.c
Date: Thu, 30 Apr 2020 20:04:08 +0000 (GMT)	[thread overview]
Message-ID: <20200430200408.D5E79389853D@sourceware.org> (raw)

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=19108a38325c6ecb33e8d216ee1056e2732bc20f

commit 19108a38325c6ecb33e8d216ee1056e2732bc20f
Author: Florian Weimer <fweimer@redhat.com>
Date:   Thu Apr 30 21:12:23 2020 +0200

    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;
          |                ^~~

Diff:
---
 sysdeps/x86/cacheinfo.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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))


                 reply	other threads:[~2020-04-30 20:04 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200430200408.D5E79389853D@sourceware.org \
    --to=fw@sourceware.org \
    --cc=glibc-cvs@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).