pgsql: Suppress compiler warning for get_am_type_string().

Started by Tom Laneover 10 years ago1 messagescomitters
Jump to latest
#1Tom Lane
tgl@sss.pgh.pa.us

Suppress compiler warning for get_am_type_string().

Compilers that don't know that elog(ERROR) doesn't return complained
that this function might fail to return a value. Per buildfarm.

While at it, const-ify the function's declaration, since the intent
is evidently to always return a constant string.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/a376960c8f8ec08783e1c529f36fbeb60236b378

Modified Files
--------------
src/backend/commands/amcmds.c | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)

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