libftdi Archives

Subject: Re: MinGW toolchain warnings

From: Paul Fertser <fercerpav@xxxxxxxxx>
To: Yegor Yefremov <yegorslists@xxxxxxxxxxxxxx>
Cc: libftdi@xxxxxxxxxxxxxxxxxxxxxxx
Date: Wed, 12 Apr 2017 09:26:58 +0300
Hello Yegor,

On Wed, Apr 12, 2017 at 08:00:32AM +0200, Yegor Yefremov wrote:
> compiling libftdi with mingw toolchain produces following warnings:
> 
> [ 29%] Building C object examples/CMakeFiles/stream_test.dir/stream_test.c.obj
> /home/user/Documents/versioned/libftdi/examples/stream_test.c: In
> function ‘readCallback’:
> /home/user/Documents/versioned/libftdi/examples/stream_test.c:86:89:
> warning: unknown conversion type character ‘l’ in format [-Wformat=]

mingw toolchain doesn't aim for C99 compatibility and so certain
features are not supported (say thanks to ms).

I suggest you use MinGW-w64 toolchain instead, as it does the right
thing. You can get it easily along with all the other useful software
via MSYS2 if you're doing native windows development or from a distro
repository if you're on GNU/Linux.

HTH
-- 
Be free, use free (http://www.gnu.org/philosophy/free-sw.html) software!
mailto:fercerpav@xxxxxxxxx

--
libftdi - see http://www.intra2net.com/en/developer/libftdi for details.
To unsubscribe send a mail to libftdi+unsubscribe@xxxxxxxxxxxxxxxxxxxxxxx   

Current Thread