Re: pgsql: Fix memory leak in pgbench - Mailing list pgsql-committers

From Fabien COELHO
Subject Re: pgsql: Fix memory leak in pgbench
Date
Msg-id alpine.DEB.2.21.1904100800060.19300@lancre
Whole thread Raw
In response to Re: pgsql: Fix memory leak in pgbench  (Masahiko Sawada <sawada.mshk@gmail.com>)
Responses Re: pgsql: Fix memory leak in pgbench
List pgsql-committers
Hello Masahiko-san,

> 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

<https://www.postgresql.org/docs/devel/source-conventions.html> says:

"Code in PostgreSQL should only rely on language features available in the 
C99 standard"

So it should be all right wrt to warnings.

However the pg style in the same page says that intermingling decl & code 
is not permitted, so the proposed patch should be applied.

-- 
Fabien.

pgsql-committers by date:

Previous
From: Michael Paquier
Date:
Subject: Re: pgsql: Fix memory leak in pgbench
Next
From: Andres Freund
Date:
Subject: Re: pgsql: Fix memory leak in pgbench