What version of GCC are you using?

-- Joe


On Tue, 30 Aug 2005, Peter Smith wrote:

Peter Smith wrote:

I was in the process of creating a RPM for Squid 2.5.STABLE10 when I stumbled across the following bug.

gcc -DHAVE_CONFIG_H -DDEFAULT_CONFIG_FILE=\"/etc/squid/squid.conf\" -I. -I. -I../include -I. -I. -I../include -I../include -O2 -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -m32 -march=i686 -mtune=pentium4 -fasynchronous-unwind-tables -D_REENTRANT -c `test -f Packer.c || echo './'`Packer.c Packer.c:165:41: error: macro "vprintf" passed 3 arguments, but takes just 2

Looking at Packer.c @ 165 I see this.
   p->vprintf(p->real_handle, fmt, args);

A "man vprintf" shows the following...
int vprintf(const char *format, va_list ap);

Am I missing anything?  I'm using RedHat stuff btw.

P


Well it looks like the 'vprintf' in this case is a member function of 'p', or 'Packer p', not the GCC/GNU 'vprintf' .. So I guess I have no idea why the error is getting thrown.

Hrm.

P

Reply via email to