From: Zdenek Kotala <Zdenek.Kotala@Sun.COM>
To: Stefan Kaltenbrunner <stefan@kaltenbrunner.cc>
Cc: pgsql-hackers@postgresql.org
Cc: peter_e@gmx.net
Subject: Re: compiler warnings on the buildfarm
Date: Mon, 16 Jul 2007 19:20:30 +0200
Message-ID: <469BA8DE.1030004@sun.com> (raw)
In-Reply-To: <469A60C8.6050404@kaltenbrunner.cc>
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>
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-hackers@postgresql.org
Cc: Zdenek.Kotala@Sun.COM, stefan@kaltenbrunner.cc, peter_e@gmx.net
Subject: Re: compiler warnings on the buildfarm
In-Reply-To: <469BA8DE.1030004@sun.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox