diff options
author | Bruce Momjian <bruce@momjian.us> | 2003-10-11 16:30:55 +0000 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 2003-10-11 16:30:55 +0000 |
commit | d51368dbbdde9cc11299426ec199c142f0a2e062 (patch) | |
tree | 4e485ae70c86574ecaf05667a5933eca5401aa04 /src/backend/storage/lmgr/proc.c | |
parent | 386e0f9046de6330f2cd5f30a70dbb17e21af87d (diff) |
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
Diffstat (limited to 'src/backend/storage/lmgr/proc.c')
-rw-r--r-- | src/backend/storage/lmgr/proc.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/backend/storage/lmgr/proc.c b/src/backend/storage/lmgr/proc.c index 8f5ab68dc0c..5c0eb76935f 100644 --- a/src/backend/storage/lmgr/proc.c +++ b/src/backend/storage/lmgr/proc.c @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/storage/lmgr/proc.c,v 1.133 2003/08/04 02:40:03 momjian Exp $ + * $Header: /cvsroot/pgsql/src/backend/storage/lmgr/proc.c,v 1.134 2003/10/11 16:30:55 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -1013,7 +1013,7 @@ enable_sig_alarm(int delayms, bool is_statement_timeout) /* If we reach here, okay to set the timer interrupt */ #ifndef __BEOS__ - MemSet(&timeval, 0, sizeof(struct itimerval)); + MemSet((void *)&timeval, 0, sizeof(struct itimerval)); timeval.it_value.tv_sec = delayms / 1000; timeval.it_value.tv_usec = (delayms % 1000) * 1000; if (setitimer(ITIMER_REAL, &timeval, NULL)) @@ -1054,7 +1054,7 @@ disable_sig_alarm(bool is_statement_timeout) #ifndef __BEOS__ struct itimerval timeval; - MemSet(&timeval, 0, sizeof(struct itimerval)); + MemSet((void *)&timeval, 0, sizeof(struct itimerval)); if (setitimer(ITIMER_REAL, &timeval, NULL)) { statement_timeout_active = deadlock_timeout_active = false; @@ -1120,7 +1120,7 @@ CheckStatementTimeout(void) #ifndef __BEOS__ struct itimerval timeval; - MemSet(&timeval, 0, sizeof(struct itimerval)); + MemSet((void *)&timeval, 0, sizeof(struct itimerval)); timeval.it_value.tv_sec = statement_fin_time.tv_sec - now.tv_sec; timeval.it_value.tv_usec = statement_fin_time.tv_usec - now.tv_usec; if (timeval.it_value.tv_usec < 0) |