mirror of
https://git.postgresql.org/git/postgresql.git
synced 2025-01-24 18:55:04 +08:00
pgbench: Silence compiler warning
Explicitly ignore return value from write(), to silence warning. This warning only appeared under --disable-thread-safety.
This commit is contained in:
parent
8182ffde5a
commit
55f100efc6
@ -2950,6 +2950,7 @@ pthread_create(pthread_t *thread,
|
|||||||
{
|
{
|
||||||
fork_pthread *th;
|
fork_pthread *th;
|
||||||
void *ret;
|
void *ret;
|
||||||
|
int rc;
|
||||||
|
|
||||||
th = (fork_pthread *) pg_malloc(sizeof(fork_pthread));
|
th = (fork_pthread *) pg_malloc(sizeof(fork_pthread));
|
||||||
if (pipe(th->pipes) < 0)
|
if (pipe(th->pipes) < 0)
|
||||||
@ -2979,7 +2980,8 @@ pthread_create(pthread_t *thread,
|
|||||||
setalarm(duration);
|
setalarm(duration);
|
||||||
|
|
||||||
ret = start_routine(arg);
|
ret = start_routine(arg);
|
||||||
write(th->pipes[1], ret, sizeof(TResult));
|
rc = write(th->pipes[1], ret, sizeof(TResult));
|
||||||
|
(void) rc;
|
||||||
close(th->pipes[1]);
|
close(th->pipes[1]);
|
||||||
free(th);
|
free(th);
|
||||||
exit(0);
|
exit(0);
|
||||||
|
Loading…
Reference in New Issue
Block a user