diff options
author | Tom Lane | 2006-04-09 19:21:34 +0000 |
---|---|---|
committer | Tom Lane | 2006-04-09 19:21:34 +0000 |
commit | bd6562f8d63e421270fa8ae27384b4fcb78d863f (patch) | |
tree | 363fd0a007ddb53bcddd9e3d8dc5f912a4e96514 | |
parent | c49994a0d02b9529c8c43a6ee13ac07e422024c1 (diff) |
Suppress a couple of minor compiler warnings, per Magnus.
-rw-r--r-- | src/backend/port/win32/sema.c | 3 | ||||
-rw-r--r-- | src/timezone/localtime.c | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/src/backend/port/win32/sema.c b/src/backend/port/win32/sema.c index e4413a142b..d12d6dc4f6 100644 --- a/src/backend/port/win32/sema.c +++ b/src/backend/port/win32/sema.c @@ -134,6 +134,7 @@ semget(int semKey, int semNum, int flags) HANDLE *sem_handles = NULL; int *sem_counts = NULL; int i; + win32_sem_set_hdr *new_set; sec_attrs.nLength = sizeof(sec_attrs); sec_attrs.lpSecurityDescriptor = NULL; @@ -144,7 +145,7 @@ semget(int semKey, int semNum, int flags) strcpy(num_part, _itoa(_getpid() * -1, cur_num, 10)); /* For shared memory, * include the pid */ - win32_sem_set_hdr *new_set = (win32_sem_set_hdr *) ShmemInitStruct(semname, sem_set_size, &found); + new_set = (win32_sem_set_hdr *) ShmemInitStruct(semname, sem_set_size, &found); if (found) { diff --git a/src/timezone/localtime.c b/src/timezone/localtime.c index 4e25723924..961c12bac7 100644 --- a/src/timezone/localtime.c +++ b/src/timezone/localtime.c @@ -456,7 +456,7 @@ getrule(const char *strp, struct rule * rulep) * calculate the Epoch-relative time that rule takes effect. */ static pg_time_t -transtime(const pg_time_t janfirst, int year, +transtime(pg_time_t janfirst, int year, const struct rule * rulep, long offset) { int leapyear; |