From: Jeff Garzik Subject: Re: [PATCH] NFSD: fix uninitialized variable Date: Mon, 28 May 2007 23:19:21 -0400 Message-ID: <465B9BB9.7060300@garzik.org> References: <20070527103442.GA10594@havoc.gtf.org> <20070529030050.GB20631@fieldses.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Cc: neilb@suse.de, Andrew Morton , nfs@lists.sourceforge.net, LKML To: "J. Bruce Fields" Return-path: Received: from sc8-sf-mx2-b.sourceforge.net ([10.3.1.92] helo=mail.sourceforge.net) by sc8-sf-list2-new.sourceforge.net with esmtp (Exim 4.43) id 1HssF4-0005xM-OM for nfs@lists.sourceforge.net; Mon, 28 May 2007 20:19:27 -0700 Received: from srv5.dvmed.net ([207.36.208.214] helo=mail.dvmed.net) by mail.sourceforge.net with esmtps (TLSv1:AES256-SHA:256) (Exim 4.44) id 1HssF7-0006UF-Ie for nfs@lists.sourceforge.net; Mon, 28 May 2007 20:19:29 -0700 In-Reply-To: <20070529030050.GB20631@fieldses.org> List-Id: "Discussion of NFS under Linux development, interoperability, and testing." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: nfs-bounces@lists.sourceforge.net Errors-To: nfs-bounces@lists.sourceforge.net J. Bruce Fields wrote: > On Sun, May 27, 2007 at 06:34:42AM -0400, Jeff Garzik wrote: >> Unlike many of the bogus warnings spewed by gcc, this one actually >> complains about a real bug: > > No, the calls to posix_acl_valid() in nfs4_acl_posix_to_nfsv4() ensure > that the passed-in acl has ACL_USER_OBJ, ACL_GROUP_OBJ, and ACL_OTHER > entries, and hence that these fields will always be initialized. OK > But I don't want anyone else wasting their time on this. Should we cave > in and add the initialization here just to shut up gcc? Or would a > comment here help? Given what you said above, I don't see gcc, on its best day, will ever know enough to validate that that variable is indeed always initialized. So I would vote for silencing it on those grounds. Jeff ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ NFS maillist - NFS@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nfs