diff --git a/src/test/regress/pg_regress.c b/src/test/regress/pg_regress.c index 8d4c3dda339..fc28ab3adab 100644 --- a/src/test/regress/pg_regress.c +++ b/src/test/regress/pg_regress.c @@ -11,7 +11,7 @@ * Portions Copyright (c) 1996-2008, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $PostgreSQL: pgsql/src/test/regress/pg_regress.c,v 1.49 2008/11/09 00:28:35 tgl Exp $ + * $PostgreSQL: pgsql/src/test/regress/pg_regress.c,v 1.50 2008/11/20 15:03:39 mha Exp $ * *------------------------------------------------------------------------- */ @@ -271,6 +271,7 @@ stop_postmaster(void) { /* We use pg_ctl to issue the kill and wait for stop */ char buf[MAXPGPATH * 2]; + int r; /* On Windows, system() seems not to force fflush, so... */ fflush(stdout); @@ -279,7 +280,7 @@ stop_postmaster(void) snprintf(buf, sizeof(buf), SYSTEMQUOTE "\"%s/pg_ctl\" stop -D \"%s/data\" -s -m fast" SYSTEMQUOTE, bindir, temp_install); - system(buf); /* ignore exit status */ + r = system(buf); /* ignore exit status. Store in variable to silence gcc */ postmaster_running = false; } }