This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/53946] gcc emits warning when intmax_t is long long and format string %jd is used
- From: "pinskia at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 12 Jul 2012 23:46:07 +0000
- Subject: [Bug c/53946] gcc emits warning when intmax_t is long long and format string %jd is used
- Auto-submitted: auto-generated
- References: <bug-53946-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53946
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> 2012-07-12 23:46:07 UTC ---
In fact for x86_64, intmax_t is defined as long rather than long long. Use
stdint.h instead of defining your own intmax_t.