1
0
mirror of https://github.com/postgres/postgres.git synced 2025-11-09 06:21:09 +03:00

Miscellaneous cleanup to silence compiler warnings seen on Mingw.

Remove some dead code, conditionally declare some items or call
some code, and fix one or two declarations.
This commit is contained in:
Andrew Dunstan
2011-12-10 18:15:15 -05:00
parent 8e461ca5a9
commit 0f44335122
9 changed files with 35 additions and 37 deletions

View File

@@ -63,7 +63,11 @@ static pid_t bgchild = -1;
/* End position for xlog streaming, empty string if unknown yet */
static XLogRecPtr xlogendptr;
#ifndef WIN32
static int has_xlogendptr = 0;
#else
static volatile LONG has_xlogendptr = 0;
#endif
/* Function headers */
static void usage(void);
@@ -1070,10 +1074,11 @@ BaseBackup(void)
if (bgchild > 0)
{
int status;
#ifndef WIN32
int status;
int r;
#else
DWORD status;
#endif
if (verbose)
@@ -1147,7 +1152,7 @@ BaseBackup(void)
if (status != 0)
{
fprintf(stderr, _("%s: child thread exited with error %u\n"),
progname, status);
progname, (unsigned int) status);
disconnect_and_exit(1);
}
/* Exited normally, we're happy */