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:
parent
b09a1a2942
commit
284491ee71
@ -11,7 +11,7 @@
|
|||||||
* Portions Copyright (c) 1996-2008, PostgreSQL Global Development Group
|
* Portions Copyright (c) 1996-2008, PostgreSQL Global Development Group
|
||||||
* Portions Copyright (c) 1994, Regents of the University of California
|
* 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 */
|
/* We use pg_ctl to issue the kill and wait for stop */
|
||||||
char buf[MAXPGPATH * 2];
|
char buf[MAXPGPATH * 2];
|
||||||
|
int r;
|
||||||
|
|
||||||
/* On Windows, system() seems not to force fflush, so... */
|
/* On Windows, system() seems not to force fflush, so... */
|
||||||
fflush(stdout);
|
fflush(stdout);
|
||||||
@ -279,7 +280,7 @@ stop_postmaster(void)
|
|||||||
snprintf(buf, sizeof(buf),
|
snprintf(buf, sizeof(buf),
|
||||||
SYSTEMQUOTE "\"%s/pg_ctl\" stop -D \"%s/data\" -s -m fast" SYSTEMQUOTE,
|
SYSTEMQUOTE "\"%s/pg_ctl\" stop -D \"%s/data\" -s -m fast" SYSTEMQUOTE,
|
||||||
bindir, temp_install);
|
bindir, temp_install);
|
||||||
system(buf); /* ignore exit status */
|
r = system(buf); /* ignore exit status. Store in variable to silence gcc */
|
||||||
postmaster_running = false;
|
postmaster_running = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user