After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 325864 - glib/gthreadpool.c:"#define debug(...)" is C99
glib/gthreadpool.c:"#define debug(...)" is C99
Status: RESOLVED FIXED
Product: glib
Classification: Platform
Component: general
2.9.x
Other All
: Normal normal
: ---
Assigned To: gtkdev
gtkdev
Depends on:
Blocks:
 
 
Reported: 2006-01-05 14:05 UTC by Kazuki Iwamoto
Modified: 2006-01-05 14:24 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Kazuki Iwamoto 2006-01-05 14:05:07 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:
Comment 1 Matthias Clasen 2006-01-05 14:24:43 UTC
2006-01-05  Matthias Clasen  <mclasen@redhat.com>

	* glib/gthreadpool.c: Avoid use of varargs macro.  (#325864,
	Kazuki IWAMOTO)