Silence compiler warning about ignored return value. Our comment already

clearly stated that we are aware that we're ignoring it.
This commit is contained in:
Magnus Hagander 2008-11-20 15:03:39 +00:00
parent b09a1a2942
commit 284491ee71

View File

@ -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;
}
}