From: Tom Lane <tgl@sss.pgh.pa.us>
To: Andres Freund <andres@2ndquadrant.com>
Cc: pgsql-committers@postgresql.org
Cc: Michael Paquier <michael.paquier@gmail.com>
Subject: Re: pgsql: Use FLEXIBLE_ARRAY_MEMBER in a bunch more places.
Date: Fri, 20 Feb 2015 10:49:32 -0500
Message-ID: <21635.1424447372@sss.pgh.pa.us> (raw)
In-Reply-To: <20150220153914.GC12653@awork2.anarazel.de>
References: <E1YOfse-0003eE-Jq@gemulon.postgresql.org>
<20150220153914.GC12653@awork2.anarazel.de>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-committers>
Andres Freund <andres@2ndquadrant.com> writes:
> This triggers a large number of warnings with my preexisting clang 3.6 settings...
> In file included from /home/andres/src/postgresql/src/backend/postmaster/pgstat.c:40:
> /home/andres/src/postgresql/src/include/catalog/pg_proc.h:61:12: warning: 'proargtypes' may not be nested in a struct due to flexible array
That's annoying. I saw that Sun Studio was complaining similarly, but
I figured we could ignore it.
It's weird that compiler writers have such a hard time understanding
what actually counts as a *useful* warning, ie "you've got a flexible
array embedded in the middle of a bigger struct". Instead we get
either nothing (gcc) or pedantry (this).
regards, tom lane
--
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers
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: tgl@sss.pgh.pa.us, andres@2ndquadrant.com, michael.paquier@gmail.com
Subject: Re: pgsql: Use FLEXIBLE_ARRAY_MEMBER in a bunch more places.
In-Reply-To: <21635.1424447372@sss.pgh.pa.us>
References: <E1YOfse-0003eE-Jq@gemulon.postgresql.org> <20150220153914.GC12653@awork2.anarazel.de> <21635.1424447372@sss.pgh.pa.us>
* 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