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

Поиск
Список
Период
Сортировка
От Tom Lane
Тема pgsql: Ensure that the argument of shmdt(2) is declared "void *".
Дата
Msg-id E1nK68e-0001nY-Fm@gemulon.postgresql.org
обсуждение исходный текст
Список 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(-)


В списке pgsql-committers по дате отправления:

Предыдущее
От: Andres Freund
Дата:
Сообщение: pgsql: docs: Work around bug in the docbook xsl stylesheets.
Следующее
От: Tom Lane
Дата:
Сообщение: pgsql: Ensure that length argument of memcmp() isn't seen as negative.