Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit284491e

Browse files
committed
Silence compiler warning about ignored return value. Our comment already
clearly stated that we are aware that we're ignoring it.
1 parentb09a1a2 commit284491e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

‎src/test/regress/pg_regress.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
* Portions Copyright (c) 1996-2008, PostgreSQL Global Development Group
1212
* Portions Copyright (c) 1994, Regents of the University of California
1313
*
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 $
1515
*
1616
*-------------------------------------------------------------------------
1717
*/
@@ -271,6 +271,7 @@ stop_postmaster(void)
271271
{
272272
/* We use pg_ctl to issue the kill and wait for stop */
273273
charbuf[MAXPGPATH*2];
274+
intr;
274275

275276
/* On Windows, system() seems not to force fflush, so... */
276277
fflush(stdout);
@@ -279,7 +280,7 @@ stop_postmaster(void)
279280
snprintf(buf,sizeof(buf),
280281
SYSTEMQUOTE"\"%s/pg_ctl\" stop -D \"%s/data\" -s -m fast"SYSTEMQUOTE,
281282
bindir,temp_install);
282-
system(buf);/* ignore exit status */
283+
r=system(buf);/* ignore exit status. Store in variable to silence gcc */
283284
postmaster_running= false;
284285
}
285286
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp