Re: Beta Monday? - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Re: Beta Monday?
Date
Msg-id Pine.LNX.4.30.0109071719000.680-100000@peter.localdomain
Whole thread Raw
In response to Re: Beta Monday?  (Karel Zak <zakkr@zf.jcu.cz>)
List pgsql-hackers
Karel Zak writes:

> > But here is the tail of the output:
> > UX:cc: WARNING: debugging and optimization mutually exclusive; -O disabled
> > UX:acomp: ERROR: "encnames.c", line 36: syntax error in macro parameters
>                   ^^^^^^^^^^^^^
>  Here is:
>
> /* #define DEBUG_ENCODING */
> #ifdef DEBUG_ENCODING
> #ifdef FRONTEND
> #define encdebug(_format, _a...)        fprintf(stderr, _format, ##_a)
> #else
> #define encdebug(_format, _a...)        elog(NOTICE, _format, ##_a)
> #endif
> #else
> #define encdebug(_format, _a...)
>    ^^^^^^^^^^^
>  line 36
>
> #endif
>
>  I don't see some problem with my gcc. Or I something overlook?

That's because this is a gcc-specific feature.  You cannot portably use
varargs macros.

-- 
Peter Eisentraut   peter_e@gmx.net   http://funkturm.homeip.net/~peter



pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: Beta Monday?
Next
From: Bruce Momjian
Date:
Subject: Re: Beta Monday?