Re: Assert for frontend programs? - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Re: Assert for frontend programs?
Date
Msg-id 1355639544.4311.3.camel@vanquo.pezone.net
Whole thread Raw
In response to Re: Assert for frontend programs?  (Andrew Dunstan <andrew@dunslane.net>)
Responses Re: Assert for frontend programs?  (Peter Eisentraut <peter_e@gmx.net>)
List pgsql-hackers
On Fri, 2012-12-14 at 15:32 -0500, Andrew Dunstan wrote:
> Here's a patch for that.

It appears that your change has caused new compiler warnings:

encnames.c:9:1: warning: "Assert" redefined
In file included from encnames.c:8:
../../../src/include/postgres_fe.h:36:1: warning: this is the location of the previous definition
wchar.c:10:1: warning: "Assert" redefined
In file included from wchar.c:9:
../../../src/include/postgres_fe.h:36:1: warning: this is the location of the previous definition
encnames.c:9:1: warning: "Assert" redefined
In file included from encnames.c:8:
../../../src/include/postgres_fe.h:36:1: warning: this is the location of the previous definition

>  I changed some of the psql assertions so they 
> all have explicit boolean expressions - I think that's better style for 
> use of assert.

I think not, but I probably wrote most of that originally.





pgsql-hackers by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: Assert for frontend programs?
Next
From: Peter Eisentraut
Date:
Subject: multiple CREATE FUNCTION AS items for PLs