Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1YOpn6-00026x-FZ for pgsql-committers@arkaria.postgresql.org; Fri, 20 Feb 2015 15:46:56 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1YOpn5-0007e7-QB for pgsql-committers@arkaria.postgresql.org; Fri, 20 Feb 2015 15:46:55 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1YOpn4-0007e0-Rw for pgsql-committers@postgresql.org; Fri, 20 Feb 2015 15:46:55 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1YOpmx-0007WE-W5 for pgsql-committers@postgresql.org; Fri, 20 Feb 2015 15:46:53 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id t1KFkeDE021564; Fri, 20 Feb 2015 10:46:40 -0500 From: Tom Lane To: Andres Freund cc: pgsql-committers@postgresql.org, Michael Paquier Subject: Re: pgsql: Use FLEXIBLE_ARRAY_MEMBER in a bunch more places. In-reply-to: <20150220154255.GD12653@awork2.anarazel.de> References: <20150220153914.GC12653@awork2.anarazel.de> <20150220154255.GD12653@awork2.anarazel.de> Comments: In-reply-to Andres Freund message dated "Fri, 20 Feb 2015 16:42:55 +0100" Date: Fri, 20 Feb 2015 10:46:40 -0500 Message-ID: <21563.1424447200@sss.pgh.pa.us> X-Pg-Spam-Score: -2.9 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-committers Precedence: bulk Sender: pgsql-committers-owner@postgresql.org Andres Freund 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 -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers