warning: second parameter of `va_start' not last named argument
Mumit Khan
khan@xraylith.wisc.EDU
Tue Aug 31 22:45:00 GMT 1999
Igor Markov <imarkov@cs.ucla.edu> writes:
> warning: second parameter of `va_start' not last named argument
>
> // ------- code begins -------------------------
[ ... ]
>
> Verbosity::Verbosity(unsigned numLevels, unsigned ForMajStats, ...):
> _levels(numLevels,0), forMajStats(_levels[2])
> {
> _levels[2]=ForMajStats;
> va_list ap; va_start(ap,forMajStats);
^^^^^^^^^^^^ Should be ForMajStats.
These warnings can be useful at times ;-)
Regards,
Mumit
More information about the Gcc-bugs
mailing list