On 2019-Apr-10, Masahiko Sawada wrote:
> This change leads a compiler warning on my machine:
>
> pgbench.c: In function ‘readCommandResponse’:
> pgbench.c:2730: warning: ISO C90 forbids mixed declarations and code
> I think we should declare is_last before doing next_res = PQgetResult(st->con).
>
> Attached patch fixes it.
Thanks, pushed.
--
Álvaro Herrera https://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services