From mboxrd@z Thu Jan 1 00:00:00 1970 From: domen@coderock.org Subject: [patch 1/2] Fix gcc4 warning, file & fd may be used uninitialized in this function Date: Sun, 29 May 2005 01:17:13 +0200 Message-ID: <20050528231712.778427000@nd47.coderock.org> Cc: linux-fsdevel@vger.kernel.org, Jesse Millan , domen@coderock.org Return-path: Received: from coderock.org ([193.77.147.115]:35462 "EHLO trashy.coderock.org") by vger.kernel.org with ESMTP id S261196AbVE1XRZ (ORCPT ); Sat, 28 May 2005 19:17:25 -0400 To: viro@parcelfarce.linux.theplanet.co.uk Content-Disposition: inline; filename=warning-fs_eventpoll.c Sender: linux-fsdevel-owner@vger.kernel.org List-Id: linux-fsdevel.vger.kernel.org From: Jesse Millan This patch eliminates the warning that is generated when passing a reference of an uninitialized variable to a function where it possible that the function will return without initializing that variable. Signed-off-by: Jesse Millan Signed-off-by: Domen Puncer --- eventpoll.c | 3 +++ 1 files changed, 3 insertions(+) Index: quilt/fs/eventpoll.c =================================================================== --- quilt.orig/fs/eventpoll.c +++ quilt/fs/eventpoll.c @@ -748,6 +748,9 @@ eexit_3: eexit_2: put_filp(file); eexit_1: + /* Reference went uninitialized. */ + *efd = 0; + *efile = NULL; return error; } --