Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit513ec43

Browse files
committed
Suppress a couple of minor compiler warnings, per Magnus.
1 parenta81e281 commit513ec43

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
inti;
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
staticpg_time_t
459-
transtime(constpg_time_tjanfirst,intyear,
459+
transtime(pg_time_tjanfirst,intyear,
460460
conststructrule*rulep,longoffset)
461461
{
462462
intleapyear;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp