Thread: pgsql: Silence minor compiler warnings.

pgsql: Silence minor compiler warnings.

From
Tom Lane
Date:
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.

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/9c679a08f0cdedcf7f084daea3cba6ae9c3cbced

Modified Files
--------------
src/backend/tcop/utility.c        | 9 ++++++---
src/backend/utils/adt/jsonfuncs.c | 1 +
2 files changed, 7 insertions(+), 3 deletions(-)