GNOME Bugzilla – Bug 325864
glib/gthreadpool.c:"#define debug(...)" is C99
Last modified: 2006-01-05 14:24:43 UTC
Please describe the problem: The variadic macros is C99. So an old compiler can not compile this. Steps to reproduce: 1. compile by Visual C++ 6.0 (or other old compiler) Actual results: following messages are displayed. gthreadpool.c(32) : error C2010: '.' : unexpected in macro formal parameter list gthreadpool.c(32) : error C2010: '.' : unexpected in macro formal parameter list gthreadpool.c(32) : error C2010: '.' : unexpected in macro formal parameter list gthreadpool.c(97) : error C4002: too many actual parameters for macro 'debug' gthreadpool.c(122) : error C4002: too many actual parameters for macro 'debug' gthreadpool.c(138) : error C4002: too many actual parameters for macro 'debug' gthreadpool.c(147) : error C4002: too many actual parameters for macro 'debug' gthreadpool.c(161) : error C4002: too many actual parameters for macro 'debug' gthreadpool.c(169) : error C4002: too many actual parameters for macro 'debug' gthreadpool.c(185) : error C4002: too many actual parameters for macro 'debug' gthreadpool.c(200) : error C4002: too many actual parameters for macro 'debug' gthreadpool.c(229) : error C4002: too many actual parameters for macro 'debug' gthreadpool.c(261) : error C4002: too many actual parameters for macro 'debug' gthreadpool.c(327) : error C4002: too many actual parameters for macro 'debug' Expected results: Please use other methods. Does this happen every time? every time Other information:
2006-01-05 Matthias Clasen <mclasen@redhat.com> * glib/gthreadpool.c: Avoid use of varargs macro. (#325864, Kazuki IWAMOTO)