From: Tom Lane <tgl@sss.pgh.pa.us>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Ensure that the argument of shmdt(2) is declared "void *".
Date: Tue, 15 Feb 2022 22:17:36 +0000
Message-ID: <E1nK68e-0001nY-Fm@gemulon.postgresql.org> (raw)
Ensure that the argument of shmdt(2) is declared "void *".
Our gcc-on-Solaris buildfarm members emit "incompatible pointer type"
warnings in places where it's not. This is a bit odd, since AFAICT
Solaris follows the POSIX spec in declaring shmdt's argument as
"const void *", and you'd think any pointer argument would satisfy that.
But whatever. Part of a general push to remove off-the-beaten-track
warnings where we can easily do so.
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/4c1a1a347a47df7c17b0fd212436ccbb896c47ca
Modified Files
--------------
src/backend/port/sysv_shmem.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
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: Ensure that the argument of shmdt(2) is declared "void *".
In-Reply-To: <E1nK68e-0001nY-Fm@gemulon.postgresql.org>
References: <E1nK68e-0001nY-Fm@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