pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andres Freund <andres@anarazel.de>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-hackers@postgreSQL.org
Subject: Re: [COMMITTERS] pgsql: Add macros wrapping all usage of gcc's __attribute__.
Date: Thu, 26 Mar 2015 14:19:55 +0100
Message-ID: <20150326131955.GG451@alap3.anarazel.de> (raw)
In-Reply-To: <14247.1427325066@sss.pgh.pa.us>
References: <E1YVh0x-0002Of-Rb@gemulon.postgresql.org>
	<14247.1427325066@sss.pgh.pa.us>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-hackers>

On 2015-03-25 19:11:06 -0400, Tom Lane wrote:
> Andres Freund <andres@anarazel.de> 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



view thread (5+ messages)  latest in thread

Message-ID: <20150326131955.GG451@alap3.anarazel.de>
Permalink:  ../20150326131955.GG451@alap3.anarazel.de/
Also on:    postgresql.org/message-id/20150326131955.GG451@alap3.anarazel.de

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: andres@anarazel.de, tgl@sss.pgh.pa.us, pgsql-hackers@postgreSQL.org
  Subject: Re: [COMMITTERS] pgsql: Add macros wrapping all usage of gcc's __attribute__.
  In-Reply-To: <20150326131955.GG451@alap3.anarazel.de>
  References: <E1YVh0x-0002Of-Rb@gemulon.postgresql.org> <14247.1427325066@sss.pgh.pa.us> <20150326131955.GG451@alap3.anarazel.de>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox