Skip to content

Commit 513ec43

Browse files
committed
Suppress a couple of minor compiler warnings, per Magnus.
1 parent a81e281 commit 513ec43

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

src/backend/port/win32/sema.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* Portions Copyright (c) 1996-2006, PostgreSQL Global Development Group
77
*
88
* IDENTIFICATION
9-
* $PostgreSQL: pgsql/src/backend/port/win32/sema.c,v 1.12 2006/03/05 15:58:35 momjian Exp $
9+
* $PostgreSQL: pgsql/src/backend/port/win32/sema.c,v 1.13 2006/04/09 19:21:34 tgl Exp $
1010
*
1111
*-------------------------------------------------------------------------
1212
*/
@@ -134,6 +134,7 @@ semget(int semKey, int semNum, int flags)
134134
HANDLE *sem_handles = NULL;
135135
int *sem_counts = NULL;
136136
int i;
137+
win32_sem_set_hdr *new_set;
137138

138139
sec_attrs.nLength = sizeof(sec_attrs);
139140
sec_attrs.lpSecurityDescriptor = NULL;
@@ -144,7 +145,7 @@ semget(int semKey, int semNum, int flags)
144145

145146
strcpy(num_part, _itoa(_getpid() * -1, cur_num, 10)); /* For shared memory,
146147
* include the pid */
147-
win32_sem_set_hdr *new_set = (win32_sem_set_hdr *) ShmemInitStruct(semname, sem_set_size, &found);
148+
new_set = (win32_sem_set_hdr *) ShmemInitStruct(semname, sem_set_size, &found);
148149

149150
if (found)
150151
{

src/timezone/localtime.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* 1996-06-05 by Arthur David Olson (arthur_david_olson@nih.gov).
44
*
55
* IDENTIFICATION
6-
* $PostgreSQL: pgsql/src/timezone/localtime.c,v 1.12 2005/10/15 02:49:51 momjian Exp $
6+
* $PostgreSQL: pgsql/src/timezone/localtime.c,v 1.13 2006/04/09 19:21:34 tgl Exp $
77
*/
88

99
/*
@@ -456,7 +456,7 @@ getrule(const char *strp, struct rule * rulep)
456456
* calculate the Epoch-relative time that rule takes effect.
457457
*/
458458
static pg_time_t
459-
transtime(const pg_time_t janfirst, int year,
459+
transtime(pg_time_t janfirst, int year,
460460
const struct rule * rulep, long offset)
461461
{
462462
int leapyear;

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy