Silence minor compiler warnings.
authorTom Lane <tgl@sss.pgh.pa.us>
Sun, 19 Jan 2020 21:04:36 +0000 (16:04 -0500)
committerTom Lane <tgl@sss.pgh.pa.us>
Sun, 19 Jan 2020 21:04:36 +0000 (16:04 -0500)
commit9c679a08f0cdedcf7f084daea3cba6ae9c3cbced
tree5adeacdf529b9b2694d93d4d02c5d7f584b44fd8
parent7aaefadaac6452b2e813fae4ea531cb12d022531
Silence minor compiler warnings.

Ensure that ClassifyUtilityCommandAsReadOnly() has defined behavior
even if TransactionStmt.kind has a value that's not one of the
declared values for its enum.

Suppress warnings from compilers that don't know that elog(ERROR)
doesn't return, in ClassifyUtilityCommandAsReadOnly() and
jsonb_set_lax().

Per Coverity and buildfarm.
src/backend/tcop/utility.c
src/backend/utils/adt/jsonfuncs.c