Re: pgsql: Use FLEXIBLE_ARRAY_MEMBER in a bunch more places.

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Andres Freund <andres(at)2ndquadrant(dot)com>
Cc: pgsql-committers(at)postgresql(dot)org, Michael Paquier <michael(dot)paquier(at)gmail(dot)com>
Subject: Re: pgsql: Use FLEXIBLE_ARRAY_MEMBER in a bunch more places.
Date: 2015-02-20 15:46:40
Message-ID: 21563.1424447200@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Andres Freund <andres(at)2ndquadrant(dot)com> writes:
> Even after that I get:
> /home/andres/src/postgresql/src/backend/utils/adt/tsrank.c:201:2: warning: flexible array initialization is a GNU extension
> [-Wgnu-flexible-array-initializer]
> {0}
> ^
> /home/andres/src/postgresql/src/include/tsearch/ts_type.h:66:15: note: initialized flexible array member 'pos' is here
> WordEntryPos pos[FLEXIBLE_ARRAY_MEMBER];
> ^

I was wondering about that one. We can get rid of it probably. I'm not
really convinced we need the static constant at all ...

regards, tom lane

In response to

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2015-02-20 15:49:32 Re: pgsql: Use FLEXIBLE_ARRAY_MEMBER in a bunch more places.
Previous Message Andres Freund 2015-02-20 15:42:55 Re: pgsql: Use FLEXIBLE_ARRAY_MEMBER in a bunch more places.