Complete.Org: Mailing Lists: Archives: freeciv-dev: February 2003:
[Freeciv-Dev] (PR#3427) Remove noreturn attribute
Home

[Freeciv-Dev] (PR#3427) Remove noreturn attribute

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: rf13@xxxxxxxxxxxxxxxxx
Subject: [Freeciv-Dev] (PR#3427) Remove noreturn attribute
From: "Jason Short" <jdorje@xxxxxxxxxxxxxxxxxxxxx>
Date: Thu, 27 Feb 2003 00:37:16 -0800
Reply-to: rt@xxxxxxxxxxxxxx

[rfalke - Wed Feb 26 20:33:43 2003]:

> On Tue, Feb 18, 2003 at 12:39:22PM -0800, Raimar Falke wrote:
> > There is another solution:
> > 
> > #define die(x)   real_die(x),exit(1)
> 
> Attached is the patch. It compiles with gcc3.2 and icc6.0

I suspect the variadic arguments used in the macro are non-standard. 
Elsewhere, in freelog(), variadic arguments are not used with non-gcc
compilers.  goto_log and friends were made into functions because of
this.  This is potentially a much bigger issue than just compiler
warnings; if the compiler doesn't understand this syntax compilation
will completely fail.

Can you point to any documentation on portably using variadic arguments
in macros?

jason



[Prev in Thread] Current Thread [Next in Thread]