Re: jsonb is also breaking the rule against nameless unions

From: Robert Haas <robertmhaas(at)gmail(dot)com>
To: Andres Freund <andres(at)2ndquadrant(dot)com>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Alvaro Herrera <alvherre(at)2ndquadrant(dot)com>, Andrew Dunstan <andrew(at)dunslane(dot)net>, "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: jsonb is also breaking the rule against nameless unions
Date: 2014-04-04 15:33:56
Message-ID: CA+Tgmoa7yEgYgDqiktRNk-0ES15SXx7vyhyoozd2Ob07839ssA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Thu, Apr 3, 2014 at 11:28 AM, Andres Freund <andres(at)2ndquadrant(dot)com> wrote:
> On 2014-04-02 23:50:19 +0200, Andres Freund wrote:
>> > > I just tried it on clang. It builds clean with -Wc11-extensions except
>> > > warning about _Static_assert(). That's possibly fixable with some
>> > > autoconf trickery.
>> >
>> > Ah. That sounds promising. What clang version is that?
>>
>> It's debian's clang-3.5, which is built from trunk IIUC: 1:3.5~svn201651-1
>>
>> I have some patches that fix the configure tests to properly use
>> -Werror, but I am too tired to check their validity now.
>
> So, three patches attached:
> 1) fix a couple of warnings clang outputs in -pedantic. All of them
> somewhat valid and not too ugly to fix.
> 2) Use -Werror in a couple more configure checks. That allows to compile
> pg using both -Wc11-extensions and -Wc99-extensions in a halfway sane
> fashion. I think this is sane, but I'd welcome comments.
> 3) Fix C89 compliance issue in pgbench, plus minor cleanups. I don't
> like the fix here, but I don't really have a better idea.

I've committed the first one of these, which looks uncontroversial.
The others seem like they might need more discussion, or at least more
thought than I can give them right now.

--
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Andreas Karlsson 2014-04-04 15:34:09 Re: GiST support for inet datatypes
Previous Message Heikki Linnakangas 2014-04-04 15:26:20 Re: Re: [COMMITTERS] pgsql: In checkpoint, move the check for in-progress xacts out of criti