Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1YOqH6-0003U8-8W for pgsql-committers@arkaria.postgresql.org; Fri, 20 Feb 2015 16:17:56 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1YOqH5-0002TW-PJ for pgsql-committers@arkaria.postgresql.org; Fri, 20 Feb 2015 16:17: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 1YOqH5-0002TQ-3n for pgsql-committers@postgresql.org; Fri, 20 Feb 2015 16:17:55 +0000 Received: from mout.kundenserver.de ([212.227.17.24]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1YOqH1-000853-MD for pgsql-committers@postgresql.org; Fri, 20 Feb 2015 16:17:53 +0000 Received: from anarazel.de ([93.220.75.248]) by mrelayeu.kundenserver.de (mreue101) with ESMTPSA (Nemesis) id 0Letvr-1Xlf1w1dD5-00qmik; Fri, 20 Feb 2015 17:17:47 +0100 Received: by anarazel.de (Postfix, from userid 1000) id 0F125101ED6; Fri, 20 Feb 2015 17:17:46 +0100 (CET) Date: Fri, 20 Feb 2015 17:17:46 +0100 From: Andres Freund To: Tom Lane Cc: pgsql-committers@postgresql.org, Michael Paquier Subject: Re: pgsql: Use FLEXIBLE_ARRAY_MEMBER in a bunch more places. Message-ID: <20150220161745.GE12653@awork2.anarazel.de> References: <20150220153914.GC12653@awork2.anarazel.de> <21635.1424447372@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <21635.1424447372@sss.pgh.pa.us> X-Provags-ID: V03:K0:qxzjFvhr6ts7SLtjZk3ttcGzEQcN3tJ5ZU+AEW97eEy5UFkIloB +WEgXYPKAC/60fNvUpqFPQiEoWEC9aXVzslfGtVrbRZNLMr0XW4bDlb2Q4VNqspaZ//1QCu +g7/2bGph7DHUhg/cfVrmgdSyKW/omZXFGaTRCw24JnRc6U3O3ko9g32TiTYclkfUKdYdbc 0uLeGI3Gux4jsn4GLR0+A== X-UI-Out-Filterresults: notjunk:1; X-Pg-Spam-Score: -1.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 On 2015-02-20 10:49:32 -0500, Tom Lane wrote: > Andres Freund 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). It's two different warnings in clang, so it's not that bad. -Wgnu-variable-sized-type-not-at-end vs -Wflexible-array-extensions Greetings, Andres Freund -- Andres Freund http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Training & Services -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers