All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jens Axboe <axboe@suse.de>
To: domen@coderock.org
Cc: linux-fsdevel@vger.kernel.org, Jesse Millan <jessem@cs.pdx.edu>
Subject: Re: [patch 1/1] Fix misleading gcc4 warning, idx may be used uninitialized
Date: Tue, 21 Jun 2005 09:14:45 +0200	[thread overview]
Message-ID: <20050621071445.GB9020@suse.de> (raw)
In-Reply-To: <20050620215647.612285000@nd47.coderock.org>

On Mon, Jun 20 2005, domen@coderock.org wrote:
> 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!

Rejected, the gcc warning is (as you note) a false alarm. So fix gcc.

-- 
Jens Axboe


      parent reply	other threads:[~2005-06-21  7:13 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-06-20 21:56 [patch 1/1] Fix misleading gcc4 warning, idx may be used uninitialized domen
2005-06-21  7:07 ` Jörn Engel
2005-06-21  7:14 ` Jens Axboe [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=20050621071445.GB9020@suse.de \
    --to=axboe@suse.de \
    --cc=domen@coderock.org \
    --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.