warning about conversion type character 'L' in printf
Joachim Wuttke <j.wuttke-97/[email protected]>
| Newsgroups | gmane.comp.gnu.mingw.user |
|---|---|
| Message-ID | <[email protected]> |
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.
_______________________________________________
MinGW-Users mailing list
[email protected]
This list observes the Etiquette found at
http://www.mingw.org/Mailing_Lists.
We ask that you be polite and do the same. Disregard for the list etiquette may cause your account to be moderated.
_______________________________________________
You may change your MinGW Account Options or unsubscribe at:
https://lists.osdn.me/mailman/listinfo/mingw-users
Also: mailto:[email protected]?subject=unsubscribe
smime.p7s
(application/pkcs7-signature, 5.2 KB) - not displayed