Re: pgsql: Add noreturn attributes to some error reporting functions

From: Andres Freund <andres(at)2ndquadrant(dot)com>
To: Peter Eisentraut <peter_e(at)gmx(dot)net>
Cc: pgsql-committers(at)postgresql(dot)org
Subject: Re: pgsql: Add noreturn attributes to some error reporting functions
Date: 2013-02-12 12:19:01
Message-ID: 20130212121901.GA12852@alap2.anarazel.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers pgsql-hackers

On 2013-02-12 12:14:06 +0000, Peter Eisentraut wrote:
> Add noreturn attributes to some error reporting functions

I wonder if its time to add a macro for this instead of slapping
__attribute__((noreturn)) everywhere. That way msvc had a chance of
adding __declspec(noreturn) or whatever its magic incatation is
transparently. And perhaps other compilers in the future.

Greetings,

Andres Freund

--
Andres Freund http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training & Services

In response to

Responses

Browse pgsql-committers by date

  From Date Subject
Next Message Alvaro Herrera 2013-02-12 14:55:16 pgsql: Create libpgcommon, and move pg_malloc et al to it
Previous Message Peter Eisentraut 2013-02-12 12:14:06 pgsql: Add noreturn attributes to some error reporting functions

Browse pgsql-hackers by date

  From Date Subject
Next Message Michael Paquier 2013-02-12 12:54:52 Re: Support for REINDEX CONCURRENTLY
Previous Message Peter Eisentraut 2013-02-12 12:14:06 pgsql: Add noreturn attributes to some error reporting functions