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: Fix misuse of "const" qualifier.
Date: Mon, 14 Feb 2022 00:21:05 +0000
Message-ID: <E1nJP73-0000z7-QP@gemulon.postgresql.org> (raw)

Fix misuse of "const" qualifier.

"const foo *" is quite different from "foo * const".
This code was evidently trying to avoid casting away
const from the arguments, but entirely failed to do so.

Per study of some buildfarm warnings from anole
(which unfortunately are mostly ignorable, since it
seems not to understand "restrict" very well).
I'm surprised though that nothing else has complained.

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/994d76707a254da6d03e389fa46141371a99e4e1

Modified Files
--------------
src/backend/partitioning/partbounds.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)



Message-ID: <E1nJP73-0000z7-QP@gemulon.postgresql.org>
Permalink:  ../E1nJP73-0000z7-QP@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1nJP73-0000z7-QP@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: Fix misuse of "const" qualifier.
  In-Reply-To: <E1nJP73-0000z7-QP@gemulon.postgresql.org>
  References: <E1nJP73-0000z7-QP@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