[Mingw-users] warning about conversion type character 'L' in printf

Back to archive index
Joachim Wuttke j.wut****@fz-ju*****
Wed Dec 18 00:35:16 JST 2019


This code

    long double phi = ...;
    printf( "phi %20.14Le\n", phi);

results in this warning

    unknown conversion type character 'L' in format [-Wformat=]

when compiling with MinGW-gcc 8.2.0, -C99.

 From https://en.cppreference.com/w/cpp/io/c/fprintf
I understand that the length modifier 'L' is standard
(even pre 99), and that it is compatible with 'e'.

No warning when compiling the same code with gcc under Linux.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 5338 bytes
Desc: S/MIME Cryptographic Signature
URL: <https://lists.osdn.me/mailman/archives/mingw-users/attachments/20191217/4d25243a/attachment.bin>


More information about the MinGW-Users mailing list
Back to archive index