Mail Archives: djgpp-workers/2001/12/25/02:58:52
On Mon, 24 Dec 2001, Martin Str|mberg wrote:
> gcc ... -c doprnt.c
> cc1.exe: warnings being treated as errors
> doprnt.c: In function `_doprnt':
> doprnt.c:303: warning: signed and unsigned type in conditional expression
> doprnt.c:347: warning: signed and unsigned type in conditional expression
> doprnt.c:354: warning: signed and unsigned type in conditional expression
> #define ARG(basetype) _ulonglong = \
> flags&LONGDBL ? va_arg(argp, long long basetype) : \
> flags&LONGINT ? va_arg(argp, long basetype) : \
> flags&SHORTINT ? (short basetype)va_arg(argp, int) : \
> va_arg(argp, int)
> [...]
> I'm not sure what I should do to solve this.
Report a bug to the gcc-bug mailing list, I guess. I don't see
anything wrong with the code it flags here.
Note that the complaints are about the calls of ARG with an unsigned
type as its argument, while `flags' is an int. I don't see how could
that be wrong, but maybe declare `flags' unsigned and see if that
helps.
- Raw text -