pgsql: Clean up minor warnings from buildfarm. - Mailing list pgsql-committers

From Tom Lane
Subject pgsql: Clean up minor warnings from buildfarm.
Date
Msg-id E1hKmwE-0002d5-6W@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
Clean up minor warnings from buildfarm.

Be more consistent about use of XXXGetDatum macros in new jsonpath
code.  This is mostly to avoid having code that looks randomly
different from everyplace else that's doing the exact same thing.

In pg_regress.c, avoid an unreferenced-function warning from
compilers that don't understand pg_attribute_unused().  Putting
the function inside the same #ifdef as its only caller is more
straightforward coding anyway.

In be-secure-openssl.c, avoid use of pg_attribute_unused() on a label.
That's pretty creative, but there's no good reason to suppose that
it's portable, and there's absolutely no need to use goto's here in the
first place.  (This wasn't actually causing any buildfarm complaints,
but it's new code in v12 so it has no portability track record.)

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/e481d26285b160058b093588e062cf3071fea192

Modified Files
--------------
src/backend/libpq/be-secure-openssl.c | 8 +++-----
src/backend/utils/adt/jsonpath.c      | 2 +-
src/backend/utils/adt/jsonpath_exec.c | 7 +++----
src/backend/utils/adt/jsonpath_gram.y | 4 +++-
src/test/regress/pg_regress.c         | 8 +++++---
5 files changed, 15 insertions(+), 14 deletions(-)


pgsql-committers by date:

Previous
From: Michael Paquier
Date:
Subject: pgsql: Fix more typos and inconsistencies in documentation
Next
From: Noah Misch
Date:
Subject: pgsql: Use preprocessor conditions compatible with Emacs indent.