pgsql: Ensure that the argument of shmdt(2) is declared "void *".

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Ensure that the argument of shmdt(2) is declared "void *".
Date: 2022-02-15 22:17:36
Message-ID: E1nK68e-0001nY-Fm@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2022-02-15 22:28:23 pgsql: Ensure that length argument of memcmp() isn't seen as negative.
Previous Message Andres Freund 2022-02-15 21:54:43 pgsql: docs: Work around bug in the docbook xsl stylesheets.