From owner-freebsd-current@FreeBSD.ORG Sun Apr 10 20:56:12 2005 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 842CA16A4CE for ; Sun, 10 Apr 2005 20:56:12 +0000 (GMT) Received: from bremen.shuttle.de (bremen.shuttle.de [194.95.249.251]) by mx1.FreeBSD.org (Postfix) with ESMTP id CA0FE43D1D for ; Sun, 10 Apr 2005 20:56:11 +0000 (GMT) (envelope-from schweikh@schweikhardt.net) Received: by bremen.shuttle.de (Postfix, from userid 10) id AECB83B937; Sun, 10 Apr 2005 22:56:10 +0200 (CEST) Received: from hal9000.schweikhardt.net (localhost [127.0.0.1]) j3AHGHZp064899 for ; Sun, 10 Apr 2005 19:16:17 +0200 (CEST) (envelope-from schweikh@hal9000.schweikhardt.net) Received: (from schweikh@localhost) by hal9000.schweikhardt.net (8.13.3/8.13.3/Submit) id j3AHGHDQ064898 for freebsd-current@freebsd.org; Sun, 10 Apr 2005 19:16:17 +0200 (CEST) (envelope-from schweikh) Date: Sun, 10 Apr 2005 19:16:17 +0200 From: Jens Schweikhardt To: freebsd-current@freebsd.org Message-ID: <20050410171617.GB1355@schweikhardt.net> References: <200504100251.j3A2pLEH055107@sana.init-main.com> <20050410092417.GA774@galgenberg.net> <20050410110836.GA1355@schweikhardt.net> <20050410134837.GC774@galgenberg.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050410134837.GC774@galgenberg.net> User-Agent: Mutt/1.5.9i Subject: Re: smbfs bug introduced at smbfs_vnops.c:1.58 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 10 Apr 2005 20:56:12 -0000 ... # > $ cat foo.c # > int main(void) { # > int a; # > a+=1; # > return a; # > } # > $ gcc -O -W -Wall -Wuninitialized -Winit-self foo.c # > foo.c: In function `main': # > foo.c:2: warning: 'a' might be used uninitialized in this function # # True, but the compiler should warn about bogus source code, even if the # resulting object code (depending on optmiziation flags) is valid. Yes, but this type of warning needs data flow analysis, which IIRC is documented to need at least -O1. So I suspect the original code may have been compiled without optimization. Regards, Jens -- Jens Schweikhardt http://www.schweikhardt.net/ SIGSIG -- signature too long (core dumped)