Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1YOppm-0002Bo-2E for pgsql-committers@arkaria.postgresql.org; Fri, 20 Feb 2015 15:49:42 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1YOppl-0007rm-Dz for pgsql-committers@arkaria.postgresql.org; Fri, 20 Feb 2015 15:49:41 +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 1YOppk-0007rf-F1 for pgsql-committers@postgresql.org; Fri, 20 Feb 2015 15:49:40 +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 1YOpph-0007Wt-JV for pgsql-committers@postgresql.org; Fri, 20 Feb 2015 15:49:38 +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 t1KFnW4m021636; Fri, 20 Feb 2015 10:49:32 -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: <20150220153914.GC12653@awork2.anarazel.de> References: <20150220153914.GC12653@awork2.anarazel.de> Comments: In-reply-to Andres Freund message dated "Fri, 20 Feb 2015 16:39:14 +0100" Date: Fri, 20 Feb 2015 10:49:32 -0500 Message-ID: <21635.1424447372@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: > 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