pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Fabien COELHO <coelho@cri.ensmp.fr>
To: Michael Paquier <michael@paquier.xyz>
Cc: 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:11:54 +0200 (CEST)
Message-ID: <alpine.DEB.2.21.1904100810560.19300@lancre> (raw)
In-Reply-To: <20190410060738.GC2728@paquier.xyz>
References: <E1hDu6Z-00010m-Ct@gemulon.postgresql.org>
	<CAD21AoCXhMNiVLYqNtitzKzE07Z88WzV-2FNFxa9VNZC9WZu1w@mail.gmail.com>
	<20190410060738.GC2728@paquier.xyz>


Bonjour Michaël,

>> 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
>
> C99 does not forbid that (see d9dd406).

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

"A few features included in the C99 standard are, at this time, not be 
permitted to be used in core PostgreSQL code. This currently includes 
variable length arrays, intermingled declarations and code, // comments, 
universal character names. Reasons for that include portability and 
historical practices."

-- 
Fabien.

view thread (23+ messages)  latest in thread

Message-ID: <alpine.DEB.2.21.1904100810560.19300@lancre>
Permalink:  ../alpine.DEB.2.21.1904100810560.19300@lancre/
Also on:    postgresql.org/message-id/alpine.DEB.2.21.1904100810560.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, michael@paquier.xyz, sawada.mshk@gmail.com, alvherre@alvh.no-ip.org
  Subject: Re: pgsql: Fix memory leak in pgbench
  In-Reply-To: <alpine.DEB.2.21.1904100810560.19300@lancre>
  References: <E1hDu6Z-00010m-Ct@gemulon.postgresql.org> <CAD21AoCXhMNiVLYqNtitzKzE07Z88WzV-2FNFxa9VNZC9WZu1w@mail.gmail.com> <20190410060738.GC2728@paquier.xyz> <alpine.DEB.2.21.1904100810560.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