From the top of the file:
* Solution: we use the constants below to *hard code* current prototypes of
* real functions. If real prototypes change, these constants will produce a
* warning (e.g., "warning: assignment from incompatible pointer type").
And so on.
-- Joe
On Tue, 30 Aug 2005, 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