pgsql: Suppress compiler warning for get_am_type_string().

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Suppress compiler warning for get_am_type_string().
Date: 2016-03-24 21:22:31
Message-ID: E1ajCi7-0004xu-Mc@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2016-03-24 22:27:52 pgsql: Move psql's print.c and mbprint.c into src/fe_utils.
Previous Message Tom Lane 2016-03-24 21:12:45 pgsql: Add missed inclusion requirement in Mkvcbuild.pm.