From: Elias Oltmanns <eo@nebensachen.de>
To: "Steven Noonan" <steven@uplinklabs.net>
Cc: "Bartlomiej Zolnierkiewicz" <bzolnier@gmail.com>,
linux-kernel@vger.kernel.org, mingo@elte.hu
Subject: Re: [PATCH] drivers/ide/ide-probe.c: uninitialized variable 'rc'
Date: Thu, 11 Sep 2008 00:40:23 +0200 [thread overview]
Message-ID: <87myifmxpk.fsf@denkblock.local> (raw)
In-Reply-To: <f488382f0809101419y65b35547t572a0f7bb5316952@mail.gmail.com> (Steven Noonan's message of "Wed, 10 Sep 2008 14:19:56 -0700")
"Steven Noonan" <steven@uplinklabs.net> wrote:
> On Wed, Sep 10, 2008 at 2:09 PM, Bartlomiej Zolnierkiewicz
> <bzolnier@gmail.com> wrote:
>>
>
>> I recall seeing identical patch before:
>>
>> http://article.gmane.org/gmane.linux.ide/33107
>>
>> Does the existing code really results in gcc warning?
>>
>>
>
> Yes, because GCC thinks it's possible that the for loop has zero
> iterations (and hence, 'rc' is never touched).
What about changing the declaration to
int i, uninitialized_var(rc);
then?
Regards,
Elias
next prev parent reply other threads:[~2008-09-10 22:40 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-09-09 21:07 [PATCH] drivers/ide/ide-probe.c: uninitialized variable 'rc' Steven Noonan
2008-09-10 6:55 ` Ingo Molnar
2008-09-10 21:09 ` Bartlomiej Zolnierkiewicz
2008-09-10 21:19 ` Steven Noonan
2008-09-10 22:40 ` Elias Oltmanns [this message]
2008-09-10 22:44 ` Steven Noonan
2008-09-27 15:40 ` Bartlomiej Zolnierkiewicz
2008-10-05 16:14 ` Bartlomiej Zolnierkiewicz
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=87myifmxpk.fsf@denkblock.local \
--to=eo@nebensachen.de \
--cc=bzolnier@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@elte.hu \
--cc=steven@uplinklabs.net \
/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