Received: from localhost (maia-3.hub.org [200.46.204.184]) by postgresql.org (Postfix) with ESMTP id 614029FB2E9 for ; Mon, 16 Jul 2007 14:21:35 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.184]) (amavisd-maia, port 10024) with ESMTP id 87251-10 for ; Mon, 16 Jul 2007 14:21:11 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from gmp-ea-fw-1.sun.com (gmp-ea-fw-1.sun.com [192.18.1.36]) by postgresql.org (Postfix) with ESMTP id CC7469FA43F for ; Mon, 16 Jul 2007 14:21:31 -0300 (ADT) Received: from d1-emea-09.sun.com ([192.18.2.119]) by gmp-ea-fw-1.sun.com (8.13.6+Sun/8.12.9) with ESMTP id l6GHLIY5009998 for ; Mon, 16 Jul 2007 17:21:20 GMT Received: from conversion-daemon.d1-emea-09.sun.com by d1-emea-09.sun.com (Sun Java System Messaging Server 6.2-6.01 (built Apr 3 2006)) id <0JLA002016S9Y000@d1-emea-09.sun.com> (original mail from Zdenek.Kotala@Sun.COM) for pgsql-hackers@postgresql.org; Mon, 16 Jul 2007 18:21:18 +0100 (BST) Received: from [129.150.120.147] by d1-emea-09.sun.com (Sun Java System Messaging Server 6.2-6.01 (built Apr 3 2006)) with ESMTPSA id <0JLA009LT866AI12@d1-emea-09.sun.com>; Mon, 16 Jul 2007 18:20:31 +0100 (BST) Date: Mon, 16 Jul 2007 19:20:30 +0200 From: Zdenek Kotala Subject: Re: compiler warnings on the buildfarm In-reply-to: <469A60C8.6050404@kaltenbrunner.cc> To: Stefan Kaltenbrunner Cc: pgsql-hackers@postgresql.org, peter_e@gmx.net Message-id: <469BA8DE.1030004@sun.com> MIME-version: 1.0 Content-type: text/plain; format=flowed; charset=ISO-8859-1 Content-transfer-encoding: 7BIT References: <46962BBD.5000108@kaltenbrunner.cc> <200707121744.22730.peter_e@gmx.net> <4696548D.7020406@kaltenbrunner.cc> <469769AD.5000703@sun.com> <46976DD2.3050202@kaltenbrunner.cc> <46977B20.9020100@sun.com> <469A60C8.6050404@kaltenbrunner.cc> User-Agent: Thunderbird 2.0.0.0 (X11/20070508) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200707/471 X-Sequence-Number: 105386 Stefan Kaltenbrunner wrote: > Zdenek Kotala wrote: >> Stefan Kaltenbrunner wrote: >>> Zdenek Kotala wrote: >>>> For sun studio -erroff=E_STATEMENT_NOT_REACHED is useful there. If you >>>> want to determine warning tags for each warning add -errtags. >>> Is that supported on all versions of sun studio(Sun WorkShop 6, Sun >>> Studio 8,11) we have on the farm ? >> Yes. Also on SS12. > > hmm - sure about that ? I was about to submit a patch to disable some > compiler warnings but then I noted the following discussion thread: > > http://forum.java.sun.com/thread.jspa?threadID=5163903&messageID=9637391 > > which seems to indicate that at least the compiler installed on kudu: > > http://buildfarm.postgresql.org/cgi-bin/show_log.pl?nm=kudu&dt=2007-07-15%2003:30:01 > > does NOT support turning of specific warnings. > I tested it on cc version 5.3 and it works. See -bash-3.00$ SUNWspro/SC6.2/bin/cc -V cc: Sun WorkShop 6 update 2 C 5.3 Patch 111680-09 2003/05/18 usage: cc [ options] files. Use 'cc -flags' for details -bash-3.00$ /ws/onnv-tools/SUNWspro/SC6.2/bin/cc pokus.c "pokus.c", line 5: warning: statement not reached -bash-3.00$ /ws/onnv-tools/SUNWspro/SC6.2/bin/cc -errtags pokus.c "pokus.c", line 5: warning: statement not reached (E_STATEMENT_NOT_REACHED) -bash-3.00$ /ws/onnv-tools/SUNWspro/SC6.2/bin/cc -erroff=E_STATEMENT_NOT_REACHED pokus.c -bash-3.00$ It works since Sun Workshop 4.2 (cc: WorkShop Compilers 4.2 26 Jun 1997 C 4.2 patch 105062-01). I tested it also on SunWorkshop 2.0.1 and it does not work there, but I belive that nobody uses ten years old compiler :-). Please, can you send me a cc -V output ( I think It should be added in log). Zdenek