Received: from localhost (unknown [200.46.208.211]) by mail.postgresql.org (Postfix) with ESMTP id D77C0633815; Fri, 29 May 2009 09:43:21 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.208.211]) (amavisd-maia, port 10024) with ESMTP id 23065-08; Fri, 29 May 2009 09:43:07 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from gmp-eb-inf-1.sun.com (gmp-eb-inf-1.sun.com [192.18.6.21]) by mail.postgresql.org (Postfix) with ESMTP id 9E074632F8E; Fri, 29 May 2009 09:43:14 -0300 (ADT) Received: from fe-emea-10.sun.com (gmp-eb-lb-1-fe3.eu.sun.com [192.18.6.10]) by gmp-eb-inf-1.sun.com (8.13.7+Sun/8.12.9) with ESMTP id n4TChCkL005641; Fri, 29 May 2009 12:43:12 GMT MIME-version: 1.0 Content-transfer-encoding: 8BIT Content-type: text/plain; charset=UTF-8 Received: from conversion-daemon.fe-emea-10.sun.com by fe-emea-10.sun.com (Sun Java(tm) System Messaging Server 7u2-7.02 64bit (built Apr 16 2009)) id <0KKE00000O1CE900@fe-emea-10.sun.com>; Fri, 29 May 2009 13:43:12 +0100 (BST) Received: from [192.168.1.100] ([unknown] [89.102.157.161]) by fe-emea-10.sun.com (Sun Java(tm) System Messaging Server 7u2-7.02 64bit (built Apr 16 2009)) with ESMTPSA id <0KKE0073UONU5XH0@fe-emea-10.sun.com>; Fri, 29 May 2009 13:43:07 +0100 (BST) Date: Fri, 29 May 2009 14:44:12 +0200 From: Zdenek Kotala Subject: Re: Compiler warning cleanup - unitilized const variables, pointer type mismatch In-reply-to: <10902.1243526259@sss.pgh.pa.us> To: Tom Lane Cc: Michael Meskes , "pgsql-hackers@postgresql.org" Message-id: <1243601052.1301.24.camel@localhost> X-Mailer: Evolution 2.26.1.1 References: <1243501880.1372.23.camel@localhost> <20090528113347.GB9247@feivel.credativ.lan> <1243511467.1372.43.camel@localhost> <20090528124723.GA23989@feivel.credativ.lan> <10902.1243526259@sss.pgh.pa.us> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200905/1385 X-Sequence-Number: 138927 Tom Lane píše v čt 28. 05. 2009 v 11:57 -0400: > ). > > AFAICS, Sun's compiler is just too stupid and shouldn't be emitting > this warning. Perhaps the right response is to file a bug report > against the compiler. I checked it and it is already know bug. It is new lint style check in Sun Studio 12. Unfortunately, problem is that current workflow does not allow to detect if code is dead or not in the verification phase. Next sun studio release could fix it. Zdenek