Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Yb7hh-0007Dy-Fo for pgsql-hackers@arkaria.postgresql.org; Thu, 26 Mar 2015 13:20:09 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1Yb7hg-0001lS-BN for pgsql-hackers@arkaria.postgresql.org; Thu, 26 Mar 2015 13:20:08 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1Yb7hf-0001kE-06 for pgsql-hackers@postgreSQL.org; Thu, 26 Mar 2015 13:20:07 +0000 Received: from mail.anarazel.de ([217.115.131.40]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Yb7hX-00010G-Al for pgsql-hackers@postgreSQL.org; Thu, 26 Mar 2015 13:20:05 +0000 Received: from intern.anarazel.de (unknown [69.38.132.3]) (Authenticated sender: andres@anarazel.de) by mail.anarazel.de (Postfix) with ESMTPSA id 805D9860001; Thu, 26 Mar 2015 14:19:58 +0100 (CET) Date: Thu, 26 Mar 2015 14:19:55 +0100 From: Andres Freund To: Tom Lane Cc: pgsql-hackers@postgreSQL.org Subject: Re: [COMMITTERS] pgsql: Add macros wrapping all usage of gcc's __attribute__. Message-ID: <20150326131955.GG451@alap3.anarazel.de> References: <14247.1427325066@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <14247.1427325066@sss.pgh.pa.us> X-Pg-Spam-Score: -4.2 (----) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org On 2015-03-25 19:11:06 -0400, Tom Lane wrote: > Andres Freund writes: > > Add macros wrapping all usage of gcc's __attribute__. > > I noticed that this commit attached pg_attribute_noreturn not only > to the extern declarations, but to some actual function definitions. Unless either Oskari or I screwed up, it should just have been a 1:1 translation from previous __attribute__((noreturn)) to pg_attribute_noreturn. I looked through the commit just now and didn't see any new locations. > I think this is a bad idea, because it's going to look like heck after > pgindent gets through with it. Do we actually need decoration on the > function definitions? Hm, I guess it should not look any worse than before? None of the locations look like they've been introduced after the last pgindent run. I only see plpgsql_yyerror, yyerror. That said, I see little reason to add the noreturn thingy to the definition and not the declaration for those. It actually looks to me like there's a declaration for replication_yyerror, but a plain yyerror is used instead in repl_scanner.l? Greetings, Andres Freund -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers