Re: ecpg compile error on AIX

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Tatsuo Ishii <t-ishii(at)sra(dot)co(dot)jp>, pgsql-hackers(at)postgresql(dot)org, Michael Meskes <meskes(at)postgresql(dot)org>
Subject: Re: ecpg compile error on AIX
Date: 2002-01-07 23:39:19
Message-ID: 200201072339.g07NdJc18541@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

> In GNU C, addition and subtraction operations are supported on
> pointers to `void' and on pointers to functions. This is done by
> treating the size of a `void' or of a function as 1.
>
> A consequence of this is that `sizeof' is also allowed on `void' and
> on function types, and returns 1.
>
> The option `-Wpointer-arith' requests a warning if these extensions
> are used.
>
> It occurs to me that we ought to add -Wpointer-arith to our standard
> gcc options, so that this sort of mistake will be caught sooner in
> future.

I added this to my Makefile.custom.

--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Oleg Bartunov 2002-01-07 23:49:14 Re: RC1 time?
Previous Message Peter Eisentraut 2002-01-07 22:35:43 Default permissions of system catalogs