Received: from localhost (maia-2.hub.org [200.46.204.187]) by postgresql.org (Postfix) with ESMTP id 88A879FC022 for ; Fri, 13 Jul 2007 09:02:00 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.187]) (amavisd-maia, port 10024) with ESMTP id 67220-07 for ; Fri, 13 Jul 2007 09:01:47 -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 CA8579FBDF0 for ; Fri, 13 Jul 2007 09:01:56 -0300 (ADT) Received: from d1-emea-09.sun.com (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 l6DC1oqd015951 for ; Fri, 13 Jul 2007 12:01:50 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 <0JL400D019BMTT00@d1-emea-09.sun.com> (original mail from Zdenek.Kotala@Sun.COM) for pgsql-hackers@postgresql.org; Fri, 13 Jul 2007 13:01:50 +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 <0JL40053N9F1QGYU@d1-emea-09.sun.com>; Fri, 13 Jul 2007 13:01:50 +0100 (BST) Date: Fri, 13 Jul 2007 14:01:49 +0200 From: Zdenek Kotala Subject: Re: compiler warnings on the buildfarm In-reply-to: <4696548D.7020406@kaltenbrunner.cc> To: Stefan Kaltenbrunner Cc: Peter Eisentraut , pgsql-hackers@postgresql.org Message-id: <469769AD.5000703@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> User-Agent: Thunderbird 2.0.0.0 (X11/20070508) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200707/379 X-Sequence-Number: 105294 Stefan Kaltenbrunner wrote: > Peter Eisentraut wrote: >> Am Donnerstag, 12. Juli 2007 15:25 schrieb Stefan Kaltenbrunner: >>> a lot of those are simply noise (like the LOOP VECTORIZED stuff from the >>> icc boxes or the "statement not reached" spam from the sun compilers) >>> but others might indicate real issues. >>> To find warnings that might be a real problem we might want to look into >>> suppressing those - if possible - using compiler switches. >> It would be good to determine an appropriate set of compiler switches to >> reduce the warnings to a reasonable level. > > yeah once we have determined that this whole experiment is useful it > should be pretty easy to tweak the compiler switches for the non-gcc > compilers (mostly icc and sun studio seem to be the ones that generate > excessive output). > For sun studio -erroff=E_STATEMENT_NOT_REACHED is useful there. If you want to determine warning tags for each warning add -errtags. Zdenek