From: domen@coderock.org
To: axboe@suse.de
Cc: linux-fsdevel@vger.kernel.org, Jesse Millan <jessem@cs.pdx.edu>,
domen@coderock.org
Subject: [patch 1/1] Fix misleading gcc4 warning, idx may be used uninitialized
Date: Mon, 20 Jun 2005 23:56:48 +0200 [thread overview]
Message-ID: <20050620215647.612285000@nd47.coderock.org> (raw)
[-- Attachment #1: gcc4-fs_bio.c --]
[-- Type: text/plain, Size: 638 bytes --]
From: Jesse Millan <jessem@cs.pdx.edu>
This warning is a false alarm.
This patch eliminates the warning that idx may be used uninitialized in
the function bvec_alloc_bs().
Signed-off-by: Jesse Millan <jessem@cs.pdx.edu>
Signed-off-by: Domen Puncer <domen@coderock.org>
---
bio.c | 1 +
1 files changed, 1 insertion(+)
Index: quilt/fs/bio.c
===================================================================
--- quilt.orig/fs/bio.c
+++ quilt/fs/bio.c
@@ -78,6 +78,7 @@ static inline struct bio_vec *bvec_alloc
{
struct bio_vec *bvl;
struct biovec_slab *bp;
+ *idx = 0;
/*
* see comment near bvec_array define!
--
next reply other threads:[~2005-06-20 22:04 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-06-20 21:56 domen [this message]
2005-06-21 7:07 ` [patch 1/1] Fix misleading gcc4 warning, idx may be used uninitialized Jörn Engel
2005-06-21 7:14 ` Jens Axboe
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=20050620215647.612285000@nd47.coderock.org \
--to=domen@coderock.org \
--cc=axboe@suse.de \
--cc=jessem@cs.pdx.edu \
--cc=linux-fsdevel@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.