Mail Archives: djgpp/2003/04/21/07:45:09
Richard Dawe wrote:
>
> Hello.
>
> Eric Sosman wrote:
> >
> > Gisle Vanem wrote:
> > >
> > > I'm porting some code from Watcom to gcc/djgpp and encountered
> > > tons of warnings on illegal use of va_arg(). So I cooked up a little
> > > test:
> > >
> > > #include <stdarg.h>
> > > char x;
> > > void foo (va_list arg)
> >
> > Hold on; stop right there. You've included <stdarg.h>, but you're
> > using the argument list declaration from the pre-Standard <varargs.h>
> > (or <vararg.h> with some compilers). The two are not the same, they
> > are not interchangeable, and they are *definitely* not miscible.
> [snip]
>
> Are you sure that's happening? [...]
Um, er, "Upon further review" as they say in (American) football,
no I'm not sure. I read the original too hastily, got myself confused,
and apologize if I've propagated my own confusion to others.
Gotta go; time for my daily self-administered dope slap.
--
Eric Sosman
esosman AT acm DOT org
- Raw text -