This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: ISO C90 checking but ignoring 64-bit printf/scanf warnings


Hi Jeroen,

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
SCNfblah facilities.

Does -Wno-long-long suppress some (or any?) of the bothersome warnings?

HTH,
--Eljay


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]