Suppress compiler warning for get_am_type_string().

Tom Lane <tgl@sss.pgh.pa.us>

Commit: a376960c8f8ec08783e1c529f36fbeb60236b378
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2016-03-24T21:22:24Z
Releases: 9.6.0
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.

Files

PathChange+/−
src/backend/commands/amcmds.c modified +4 −3