This is the mail archive of the
mailing list for the GCC project.
Re: ISO C90 checking but ignoring 64-bit printf/scanf warnings
- From: John Love-Jensen <eljay at adobe dot com>
- To: Jeroen Massar <jeroen at unfix dot org>, Tom St Denis <tstdenis at ellipticsemi dot com>
- Cc: MSX to GCC <gcc-help at gcc dot gnu dot org>
- Date: Thu, 08 Nov 2007 10:41:00 -0600
- Subject: Re: ISO C90 checking but ignoring 64-bit printf/scanf warnings
Can you move from C90 to C99 (ISO 9899:1999)?
That way you could rely on #include <stdint.h> (the abridged int type
header) and the #include <inttypes.h> (the header with everything, including
the printf/scanf support), and stop hard-coding with "%lu" and "%llu".
Your own home-grown FMT_blah mimics some of the <inttypes.h> PRIblah and
Does -Wno-long-long suppress some (or any?) of the bothersome warnings?