Ensure that the argument of shmdt(2) is declared "void *".
authorTom Lane <tgl@sss.pgh.pa.us>
Tue, 15 Feb 2022 22:17:25 +0000 (17:17 -0500)
committerTom Lane <tgl@sss.pgh.pa.us>
Tue, 15 Feb 2022 22:17:28 +0000 (17:17 -0500)
commit4c1a1a347a47df7c17b0fd212436ccbb896c47ca
tree2873c5f629adb919eb07277d3a1a58d8dd655e51
parent1f6e0ce3beb45f23e4774148bd654d915be8d611
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.
src/backend/port/sysv_shmem.c