1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-27 12:41:57 +03:00

This patch will stop gcc from issuing warnings about type-punned objects

when -fstrict-aliasing is turned on, as it is in the latest gcc when you
use -O2

Andrew Dunstan
This commit is contained in:
Bruce Momjian
2003-10-11 16:30:55 +00:00
parent 386e0f9046
commit d51368dbbd
5 changed files with 13 additions and 13 deletions

View File

@ -10,7 +10,7 @@
* Portions Copyright (c) 1994, Regents of the University of California
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/port/sysv_shmem.c,v 1.17 2003/09/29 00:05:25 petere Exp $
* $Header: /cvsroot/pgsql/src/backend/port/sysv_shmem.c,v 1.18 2003/10/11 16:30:55 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@ -365,7 +365,7 @@ PGSharedMemoryAttach(IpcMemoryKey key, IpcMemoryId *shmid)
if (hdr->magic != PGShmemMagic)
{
shmdt(hdr);
shmdt((void *) hdr);
return NULL; /* segment belongs to a non-Postgres app */
}