Skip site navigation (1) Skip section navigation (2)

Re: additional GCC warning flags

From: Neil Conway <neilc(at)samurai(dot)com>
To: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
Cc: pgsql-patches <pgsql-patches(at)postgresql(dot)org>
Subject: Re: additional GCC warning flags
Date: 2004-10-19 01:59:10
Message-ID: 1098151150.1113.22.camel@localhost.localdomain (view raw or flat)
Thread:
Lists: pgsql-patches
On Mon, 2004-10-18 at 21:43, Bruce Momjian wrote:
> FYI, I also use:
> 
> 	-Wpointer-arith -Wcast-align
> 
> locally.  I think -Wcast-align throws errors on some platforms and can't
> be use generally.

-Wpointer-arith might be worth enabling. I'll add it to the GCC CFLAGS
in the next patch I send in.

As you said, -Wcast-align can't be enabled in general at the moment
because it flags a ton of warnings on certain platforms (at least on
IA64, probably other 64-bit platforms as well). I remember there were
some vague rumblings that fixing these issues, but I haven't heard
anything about that lately.

-Neil



In response to

Responses

pgsql-patches by date

Next:From: Tom LaneDate: 2004-10-19 02:21:58
Subject: Re: additional GCC warning flags
Previous:From: Neil ConwayDate: 2004-10-19 01:55:55
Subject: Re: additional GCC warning flags

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group