pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Clean up minor warnings from buildfarm.
Date: Sun, 28 Apr 2019 16:46:02 +0000
Message-ID: <E1hKmwE-0002d5-6W@gemulon.postgresql.org> (raw)

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



Message-ID: <E1hKmwE-0002d5-6W@gemulon.postgresql.org>
Permalink:  ../E1hKmwE-0002d5-6W@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1hKmwE-0002d5-6W@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: tgl@sss.pgh.pa.us
  Subject: Re: pgsql: Clean up minor warnings from buildfarm.
  In-Reply-To: <E1hKmwE-0002d5-6W@gemulon.postgresql.org>
  References: <E1hKmwE-0002d5-6W@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox