pgsql: Clean up c.h / postgres.h after Assert() move

Started by Jeff Janesalmost 13 years ago3 messages
#1Jeff Janes
jeff.janes@gmail.com

commit 381d4b70a9854a7b5b9f12d828a0824f8564f1e7 introduced some
compiler warnings:

assert.c:26: warning: no previous prototype for 'ExceptionalCondition'
elog.c: In function 'pg_re_throw':
elog.c:1628: warning: implicit declaration of function 'ExceptionalCondition'
elog.c:1630: warning: 'noreturn' function does return

--
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers

#2Alvaro Herrera
alvherre@2ndquadrant.com
In reply to: Jeff Janes (#1)
Re: pgsql: Clean up c.h / postgres.h after Assert() move

Jeff Janes escribió:

commit 381d4b70a9854a7b5b9f12d828a0824f8564f1e7 introduced some
compiler warnings:

assert.c:26: warning: no previous prototype for 'ExceptionalCondition'
elog.c: In function 'pg_re_throw':
elog.c:1628: warning: implicit declaration of function 'ExceptionalCondition'
elog.c:1630: warning: 'noreturn' function does return

Oh, I see the problem -- you don't have asserts enabled. Doh.

--
Álvaro Herrera http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training & Services

--
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers

#3Alvaro Herrera
alvherre@2ndquadrant.com
In reply to: Jeff Janes (#1)
Re: pgsql: Clean up c.h / postgres.h after Assert() move

Jeff Janes escribió:

commit 381d4b70a9854a7b5b9f12d828a0824f8564f1e7 introduced some
compiler warnings:

assert.c:26: warning: no previous prototype for 'ExceptionalCondition'
elog.c: In function 'pg_re_throw':
elog.c:1628: warning: implicit declaration of function 'ExceptionalCondition'
elog.c:1630: warning: 'noreturn' function does return

Fixed, thanks for the report.

--
Álvaro Herrera http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training & Services

--
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers