Skip site navigation (1) Skip section navigation (2)

pgsql: Declare AnonymousShmem pointer as "void *".

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Declare AnonymousShmem pointer as "void *".
Date: 2012-06-30 21:19:59
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-committers
Declare AnonymousShmem pointer as "void *".

The original coding had it as "PGShmemHeader *", but that doesn't offer any
notational benefit because we don't dereference it.  And it was resulting
in compiler warnings on some platforms, notably buildfarm member
castoroides, where mmap() and munmap() are evidently declared to take and
return "char *".



Modified Files
src/backend/port/sysv_shmem.c |   13 ++++++-------
1 files changed, 6 insertions(+), 7 deletions(-)

pgsql-committers by date

Next:From: Tom LaneDate: 2012-06-30 21:29:59
Subject: pgsql: Remove inappropriate semicolons after function definitions.
Previous:From: Tom LaneDate: 2012-06-30 20:45:46
Subject: pgsql: Prevent CREATE TABLE LIKE/INHERITS from (mis) copyingwhole-row

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group