All of lore.kernel.org
 help / color / mirror / Atom feed
From: Oleg Verych <olecom@flower.upol.cz>
To: linux-kernel@vger.kernel.org
Subject: Re: [PATCH] arch/i386/kernel/cpu/transmeta.c, kernel 2.6.17.8
Date: Wed, 09 Aug 2006 23:30:33 +0200	[thread overview]
Message-ID: <ebdr6i$8nj$1@sea.gmane.org> (raw)
In-Reply-To: <b572c9e10608091049q5223adddxb2fd854c31877670@mail.gmail.com>

Forrest Voight:
 > Corrects warning:
 > arch/i386/kernel/cpu/transmeta.c: In function 'init_transmeta':
 > arch/i386/kernel/cpu/transmeta.c:12: warning: 'cpu_freq' may be used
 > uninitialized in this function
 > -       unsigned int cpu_rev, cpu_freq, cpu_flags, new_cpu_rev;
 > +       unsigned int cpu_rev, cpu_freq = 0, cpu_flags, new_cpu_rev;

If one doesn't want to add more init code, but variable indeed used 
uninitialazed, in GCC 3.X struct may be used, GCC 4.X needs 'volatile'.


      parent reply	other threads:[~2006-08-09 23:45 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-08-09 17:49 [PATCH] arch/i386/kernel/cpu/transmeta.c, kernel 2.6.17.8 Forrest Voight
2006-08-09 20:18 ` Michael Tokarev
2006-08-09 21:30 ` Oleg Verych [this message]

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='ebdr6i$8nj$1@sea.gmane.org' \
    --to=olecom@flower.upol.cz \
    --cc=linux-kernel@vger.kernel.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.