From: Magnus Hagander Date: Thu, 20 Nov 2008 15:03:39 +0000 (+0000) Subject: Silence compiler warning about ignored return value. Our comment already X-Git-Tag: recoveryinfrav9~317 X-Git-Url: http://git.postgresql.org/gitweb/static/gitweb.js?a=commitdiff_plain;h=563a87f679cec7dd49b87b47560200104b022d09;p=users%2Fsimon%2Fpostgres.git Silence compiler warning about ignored return value. Our comment already clearly stated that we are aware that we're ignoring it. --- diff --git a/src/test/regress/pg_regress.c b/src/test/regress/pg_regress.c index 4167679afc..985c6040f4 100644 --- a/src/test/regress/pg_regress.c +++ b/src/test/regress/pg_regress.c @@ -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; } }