pgsql: Fix misuse of "const" qualifier.

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Fix misuse of "const" qualifier.
Date: 2022-02-14 00:21:05
Message-ID: E1nJP73-0000z7-QP@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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

Browse pgsql-committers by date

  From Date Subject
Next Message Michael Paquier 2022-02-14 00:31:35 pgsql: Make origin data initialization consistent other fields in 2PC h
Previous Message Michael Paquier 2022-02-14 00:02:29 Re: pgsql: Add suport for server-side LZ4 base backup compression.