]> granicus.if.org Git - postgresql/commit
Suppress compiler warning for get_am_type_string().
authorTom Lane <tgl@sss.pgh.pa.us>
Thu, 24 Mar 2016 21:22:24 +0000 (17:22 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Thu, 24 Mar 2016 21:22:24 +0000 (17:22 -0400)
commita376960c8f8ec08783e1c529f36fbeb60236b378
treec6bb56dd167c44f0e28d9fc3a77030a974301252
parent0ecd3fedfcf3427ebeb73cc61b2fcf6ed67c43a2
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.
src/backend/commands/amcmds.c