Silence minor compiler warnings.

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

Commit: 9c679a08f0cdedcf7f084daea3cba6ae9c3cbced
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2020-01-19T21:04:36Z
Releases: 13.0
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.

Files

PathChange+/−
src/backend/tcop/utility.c modified +6 −3
src/backend/utils/adt/jsonfuncs.c modified +1 −0