From: Dave Jones <davej@redhat.com>
To: Keith Owens <kaos@ocs.com.au>
Cc: linux-kernel@vger.kernel.org
Subject: Re: 2.6.14 assorted warnings
Date: Fri, 28 Oct 2005 03:30:50 -0400 [thread overview]
Message-ID: <20051028073049.GA27389@redhat.com> (raw)
In-Reply-To: <5455.1130484079@kao2.melbourne.sgi.com>
On Fri, Oct 28, 2005 at 05:21:19PM +1000, Keith Owens wrote:
> gcc 4.0.1 on i386, 2.6.14 assorted warnings.
>
> arch/i386/kernel/cpu/transmeta.c: In function 'init_transmeta':
> arch/i386/kernel/cpu/transmeta.c:11: warning: 'cpu_freq' may be used uninitialized in this function
>
> fs/bio.c: In function 'bio_alloc_bioset':
> fs/bio.c:167: warning: 'idx' may be used uninitialized in this function
gcc is dumb, it doesn't realise that the variable will be filled by another
function if its passed thus..
unsigned long foo
bar(&foo)
if (foo==1)
...
With bar() filling in content of foo.
I believe there's at least once instance of this in gcc bugzilla.
Dave
next prev parent reply other threads:[~2005-10-28 7:31 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-10-28 7:21 2.6.14 assorted warnings Keith Owens
2005-10-28 7:28 ` Jens Axboe
2005-10-28 7:30 ` Dave Jones [this message]
2005-10-28 8:07 ` Arnd Bergmann
2005-10-28 8:29 ` Jens Axboe
2005-10-29 5:59 ` Richard Knutsson
2005-10-29 6:03 ` Al Viro
2005-10-28 8:10 ` Richard Knutsson
2005-10-30 22:15 ` Alan Cox
2005-10-30 22:25 ` Al Viro
2005-10-30 22:32 ` Al Viro
2005-10-30 22:29 ` Stephen Rothwell
2005-10-31 0:53 ` Paul Mackerras
2005-10-31 0:57 ` Al Viro
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=20051028073049.GA27389@redhat.com \
--to=davej@redhat.com \
--cc=kaos@ocs.com.au \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox