libftdi Archives

Subject: Re: Patch: Fix warnings in example/stream_read

From: Xiaofan Chen <xiaofanc@xxxxxxxxx>
To: libftdi@xxxxxxxxxxxxxxxxxxxxxxx
Date: Sat, 25 Sep 2010 18:48:40 +0800
On Tue, Sep 14, 2010 at 11:31 PM, Uwe Bonnes
<bon@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
> Hallo,
>
> the addition of -Wall to the build process brought up some issus in
> examples/stream_read
>
> --
> Uwe Bonnes                bon@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
>
> Institut fuer Kernphysik  Schlossgartenstrasse 9  64289 Darmstadt
> --------- Tel. 06151 162516 -------- Fax. 06151 164321 ----------
> From eb05e499d36613e63e16e2cdb5f21d78b27dd7da Mon Sep 17 00:00:00 2001
> From: Uwe Bonnes <bon@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
> Date: Wed, 8 Sep 2010 11:58:03 +0200
> Subject: Cleanup
>

More from the latest eeprom git branch or the official branch, under
Ubuntu 10.04 32bit.

mcuee@ubuntu:~/Desktop/build/libftdi/neweeprom/libftdi-1.0/build$ gcc -v
Using built-in specs.
Target: i486-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu
4.4.3-4ubuntu5'
--with-bugurl=file:///usr/share/doc/gcc-4.4/README.Bugs
--enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr
--enable-shared --enable-multiarch --enable-linker-build-id
--with-system-zlib --libexecdir=/usr/lib --without-included-gettext
--enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.4
--program-suffix=-4.4 --enable-nls --enable-clocale=gnu
--enable-libstdcxx-debug --enable-plugin --enable-objc-gc
--enable-targets=all --disable-werror --with-arch-32=i486
--with-tune=generic --enable-checking=release --build=i486-linux-gnu
--host=i486-linux-gnu --target=i486-linux-gnu
Thread model: posix
gcc version 4.4.3 (Ubuntu 4.4.3-4ubuntu5)

[100%] Building C object examples/CMakeFiles/stream_test.dir/stream_test.c.o
/home/mcuee/Desktop/build/libftdi/neweeprom/libftdi-1.0/examples/stream_test.c:
In function ‘readCallback’:
/home/mcuee/Desktop/build/libftdi/neweeprom/libftdi-1.0/examples/stream_test.c:87:
warning: format ‘%10ld’ expects type ‘long int’, but argument 6 has
type ‘uint64_t’
/home/mcuee/Desktop/build/libftdi/neweeprom/libftdi-1.0/examples/stream_test.c:102:
warning: format ‘%10ld’ expects type ‘long int’, but argument 6 has
type ‘uint64_t’
/home/mcuee/Desktop/build/libftdi/neweeprom/libftdi-1.0/examples/stream_test.c:
In function ‘main’:
/home/mcuee/Desktop/build/libftdi/neweeprom/libftdi-1.0/examples/stream_test.c:244:
warning: format ‘%ld’ expects type ‘long int’, but argument 4 has type
‘uint64_t’
/home/mcuee/Desktop/build/libftdi/neweeprom/libftdi-1.0/examples/stream_test.c:
In function ‘check_outfile’:
/home/mcuee/Desktop/build/libftdi/neweeprom/libftdi-1.0/examples/stream_test.c:332:
warning: format ‘%10ld’ expects type ‘long int’, but argument 6 has
type ‘uint64_t’
/home/mcuee/Desktop/build/libftdi/neweeprom/libftdi-1.0/examples/stream_test.c:346:
warning: format ‘%ld’ expects type ‘long int’, but argument 4 has type
‘uint64_t’
/home/mcuee/Desktop/build/libftdi/neweeprom/libftdi-1.0/examples/stream_test.c:348:
warning: format ‘%ld’ expects type ‘long int’, but argument 3 has type
‘uint64_t’
Linking C executable stream_test
[100%] Built target stream_test




-- 
Xiaofan

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

Current Thread