File tree 1 file changed +3
-2
lines changed 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 11
11
* Portions Copyright (c) 1996-2008, PostgreSQL Global Development Group
12
12
* Portions Copyright (c) 1994, Regents of the University of California
13
13
*
14
- * $PostgreSQL: pgsql/src/test/regress/pg_regress.c,v 1.49 2008/11/09 00:28:35 tgl Exp $
14
+ * $PostgreSQL: pgsql/src/test/regress/pg_regress.c,v 1.50 2008/11/20 15:03:39 mha Exp $
15
15
*
16
16
*-------------------------------------------------------------------------
17
17
*/
@@ -271,6 +271,7 @@ stop_postmaster(void)
271
271
{
272
272
/* We use pg_ctl to issue the kill and wait for stop */
273
273
char buf [MAXPGPATH * 2 ];
274
+ int r ;
274
275
275
276
/* On Windows, system() seems not to force fflush, so... */
276
277
fflush (stdout );
@@ -279,7 +280,7 @@ stop_postmaster(void)
279
280
snprintf (buf , sizeof (buf ),
280
281
SYSTEMQUOTE "\"%s/pg_ctl\" stop -D \"%s/data\" -s -m fast" SYSTEMQUOTE ,
281
282
bindir , temp_install );
282
- system (buf ); /* ignore exit status */
283
+ r = system (buf ); /* ignore exit status. Store in variable to silence gcc */
283
284
postmaster_running = false;
284
285
}
285
286
}
You can’t perform that action at this time.
0 commit comments