warn_unused_result in pgbench - Mailing list pgsql-hackers

From Peter Eisentraut
Subject warn_unused_result in pgbench
Date
Msg-id 1371692324.13762.37.camel@vanquo.pezone.net
Whole thread Raw
Responses Re: warn_unused_result in pgbench
List 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.





pgsql-hackers by date:

Previous
From: Tatsuo Ishii
Date:
Subject: Re: Implementing incremental backup
Next
From: Peter Eisentraut
Date:
Subject: Re: pg_resetxlog -m documentation not up to date