pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Fabien COELHO <coelho@cri.ensmp.fr>
To: Masahiko Sawada <sawada.mshk@gmail.com>
Cc: Alvaro Herrera <alvherre@alvh.no-ip.org>
Cc: pgsql-committers@lists.postgresql.org
Subject: Re: pgsql: Fix memory leak in pgbench
Date: Wed, 10 Apr 2019 08:10:15 +0200 (CEST)
Message-ID: <alpine.DEB.2.21.1904100800060.19300@lancre> (raw)
In-Reply-To: <CAD21AoCXhMNiVLYqNtitzKzE07Z88WzV-2FNFxa9VNZC9WZu1w@mail.gmail.com>
References: <E1hDu6Z-00010m-Ct@gemulon.postgresql.org>
	<CAD21AoCXhMNiVLYqNtitzKzE07Z88WzV-2FNFxa9VNZC9WZu1w@mail.gmail.com>


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.

view thread (23+ messages)  latest in thread

Message-ID: <alpine.DEB.2.21.1904100800060.19300@lancre>
Permalink:  ../alpine.DEB.2.21.1904100800060.19300@lancre/
Also on:    postgresql.org/message-id/alpine.DEB.2.21.1904100800060.19300@lancre

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: coelho@cri.ensmp.fr, sawada.mshk@gmail.com, alvherre@alvh.no-ip.org
  Subject: Re: pgsql: Fix memory leak in pgbench
  In-Reply-To: <alpine.DEB.2.21.1904100800060.19300@lancre>
  References: <E1hDu6Z-00010m-Ct@gemulon.postgresql.org> <CAD21AoCXhMNiVLYqNtitzKzE07Z88WzV-2FNFxa9VNZC9WZu1w@mail.gmail.com> <alpine.DEB.2.21.1904100800060.19300@lancre>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox