warn_unused_result in pgbench

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: warn_unused_result in pgbench
Date: 2013-06-20 01:38:44
Message-ID: 1371692324.13762.37.camel@vanquo.pezone.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

When building without thread safety, I get the following compiler
warning in pgbench:

pgbench.c:2612:2: error: ignoring return value of function declared with warn_unused_result attribute [-Werror,-Wunused-result]
write(th->pipes[1], ret, sizeof(TResult));

That should be fixed, I think.

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Peter Eisentraut 2013-06-20 01:43:23 Re: pg_resetxlog -m documentation not up to date
Previous Message Tatsuo Ishii 2013-06-20 01:25:21 Re: Implementing incremental backup