Thread (3 messages) flat view 3 messages, 2 authors, 2003-03-05

Re: problem in ppc-linux-gcc cross compiler.

From: Vladimir Gurevich <hidden>
Date: 2003-03-04 18:04:05

Hello,

You should change the line
             warning, __FILE__, __LINE__, __FUNCTION__, ##msg) ;\
to
             warning, __FILE__, __LINE__, __FUNCTION__ , ##msg) ;\
This space (after __FUNCTION__) will do the trick.

You can read more about it in gcc info file (C Extensions/Macro Varargs),
where the issue is thoroughly explained:

       This is a special feature of the GNU C preprocessor: `##' before a
       rest argument that is empty discards the preceding sequence of
       non-whitespace characters from the macro definition.  (If another
       macro argument precedes, none of it is discarded.)


Hope, this helps.
Vladimir


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help