From: Christoph Hellwig <hch@lst.de>
To: Andrew Morton <akpm@osdl.org>
Cc: John Cherry <cherry@osdl.org>,
linux-scsi@vger.kernel.org, Christoph Hellwig <hch@lst.de>
Subject: Re: IA32 (2.6.1 - 2003-12-30.22.30) - 4 New warnings (gcc 3.2.2)
Date: Wed, 31 Dec 2003 13:08:24 +0100 [thread overview]
Message-ID: <20031231120824.GB16225@lst.de> (raw)
In-Reply-To: <20031231040047.19174e49.akpm@osdl.org>
On Wed, Dec 31, 2003 at 04:00:47AM -0800, Andrew Morton wrote:
> John Cherry <cherry@osdl.org> wrote:
> >
> > drivers/scsi/aacraid/aachba.c:1409: warning: `flag' might be used uninitialized in this function
hmm, I don't get that warning, but I guess some gcc versions aren't
smart enough to figure out that the four values we handle are the only
possible one, "fix" below:
--- 1.21/drivers/scsi/aacraid/aachba.c Wed Nov 19 19:36:23 2003
+++ edited/drivers/scsi/aacraid/aachba.c Wed Dec 31 14:06:40 2003
@@ -1427,6 +1427,7 @@
flag = SRB_DataIn;
break;
case DMA_NONE:
+ default: /* shuts up some versions of gcc */
flag = SRB_NoDataXfer;
break;
}
prev parent reply other threads:[~2003-12-31 12:08 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <200312311132.hBVBWcg6008411@cherrypit.pdx.osdl.net>
2003-12-31 12:00 ` IA32 (2.6.1 - 2003-12-30.22.30) - 4 New warnings (gcc 3.2.2) Andrew Morton
2003-12-31 12:06 ` Christoph Hellwig
2003-12-31 12:08 ` Christoph Hellwig [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=20031231120824.GB16225@lst.de \
--to=hch@lst.de \
--cc=akpm@osdl.org \
--cc=cherry@osdl.org \
--cc=linux-scsi@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