Re: warning about conversion type character 'L' in printf

Eli Zaretskii <eliz-mXXj517/[email protected]>
Newsgroups gmane.comp.gnu.mingw.user
Message-ID <[email protected]>
> From: Joachim Wuttke <[email protected]>
> Date: Tue, 17 Dec 2019 16:35:16 +0100
> 
> 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.

I think you need to use MinGW ANSI stdio to get a replacement printf
which does support that.  MSVCRT.DLL doesn't, AFAIK.

_______________________________________________
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.