pgsql: Silence minor compiler warnings.

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Silence minor compiler warnings.
Date: 2020-01-19 21:04:42
Message-ID: E1itHkQ-0007ti-Td@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Mark Dilger 2020-01-19 21:12:58 Re: pgsql: Add a non-strict version of jsonb_set
Previous Message David Fetter 2020-01-19 20:20:23 Re: pgsql: Add a non-strict version of jsonb_set