From mboxrd@z Thu Jan 1 00:00:00 1970 From: 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 Message-ID: <20050620215647.612285000@nd47.coderock.org> Cc: linux-fsdevel@vger.kernel.org, Jesse Millan , domen@coderock.org Return-path: Received: from coderock.org ([193.77.147.115]:14491 "EHLO trashy.coderock.org") by vger.kernel.org with ESMTP id S262277AbVFTWEg (ORCPT ); Mon, 20 Jun 2005 18:04:36 -0400 To: axboe@suse.de Content-Disposition: inline; filename=gcc4-fs_bio.c Sender: linux-fsdevel-owner@vger.kernel.org List-Id: linux-fsdevel.vger.kernel.org From: Jesse Millan 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 Signed-off-by: Domen Puncer --- 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! --