#1258 %I64 warnings

closed-fixed
nobody
gcc (462)
2009-02-20
2009-02-20
No

Apparently GCC doesnt't know about the Microsoft's "%I64" format and therefore

print(PRId64, a_64_bit_integer);
print("%I64d", a_64_bit_integer);

produce annoying warnings like this:
warning: format '%I64d' expects type 'int', but argument 3 has type 'int64_t'

Is there any way to fix this ?

I'm referring to various gcc4 variants of Mingw around the net.
Yes, I know, that officially gcc4 is unsupported, but more and more people
are using gcc4 with Mingw. Pls note that RedHat is including gcc4-based Mingw
cross-compiler in Fedora-11 and already added it to Fedora-10 in a form of an update.

Discussion

  • Alexey Pushkin

    Alexey Pushkin - 2009-02-20
    • priority: 5 --> 2
     
  • Danny Smith

    Danny Smith - 2009-02-20

    Fixed in GCC 4.4.0
    Danny

     
  • Danny Smith

    Danny Smith - 2009-02-20
    • labels: --> gcc
    • status: open --> closed-fixed
     

Log in to post a comment.