On Tue, Feb 19, 2013 at 3:33 AM, Ludovic Rousseau
<ludovic.rouss...@gmail.com> wrote:
> 2013/2/17 Pete Batard <p...@akeo.ie>:
>> On 2013.02.16 17:50, Ludovic Rousseau wrote:
>
>>> ../../libusb/os/threads_windows.c:137:1: warning: '__inline' is not at
>>> beginning of declaration [-Wold-style-declaration]
>>
>> The compiler's probably right on that one. Easy to fix.
>
> Fixed in 
> https://github.com/libusbx/libusbx/commit/9ae570065668ad89fe38afbb5d6f9e60f54a0945
>
>>> ../../libusb/os/threads_windows.c: In function 'usbi_cond_timedwait':
>>> ../../libusb/os/threads_windows.c:190:2: warning: nested extern
>>> declaration of 'epoch_time' [-Wnested-externs]
>>
>> Might have to add include guards somewhere, unless it's a MinGW issue.
>
> Fixed in 
> https://github.com/libusbx/libusbx/commit/0ee67c5cb75e75c2a409fa58671fe15da4d8fdf4

Still see one warning under MinGW-w64 with default compiler option
(./autogen.sh --prefix=/mingw; make).

mcuee@Vista64VM /c/work/libusbx/libusbx
$ make
make  all-recursive
make[1]: Entering directory `/c/work/libusbx/libusbx'
Making all in libusb
make[2]: Entering directory `/c/work/libusbx/libusbx/libusb'
  CC       libusb_1_0_la-core.lo
  CC       libusb_1_0_la-descriptor.lo
  CC       libusb_1_0_la-io.lo
  CC       libusb_1_0_la-sync.lo
  CC       libusb_1_0_la-poll_windows.lo
  CC       libusb_1_0_la-windows_usb.lo
os/windows_usb.c: In function 'winusbx_claim_interface':
os/windows_usb.c:376:30: warning: 'dev_info' may be used uninitialized
in this function [-Wmaybe-uninitialized]
os/windows_usb.c:2672:11: note: 'dev_info' was declared here
  GEN      libusb-1.0.lo
  CC       libusb_1_0_la-threads_windows.lo
  CCLD     libusb-1.0.la
  GEN      libusb-1.0.dll
make[2]: Leaving directory `/c/work/libusbx/libusbx/libusb'
Making all in doc
make[2]: Entering directory `/c/work/libusbx/libusbx/doc'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/c/work/libusbx/libusbx/doc'
Making all in examples
make[2]: Entering directory `/c/work/libusbx/libusbx/examples'
  CC       listdevs.o
  CCLD     listdevs.exe
  CC       xusb.o
  CCLD     xusb.exe
  CC       fxload-ezusb.o
  CC       fxload-fxload.o
  CCLD     fxload.exe
make[2]: Leaving directory `/c/work/libusbx/libusbx/examples'
Making all in tests
make[2]: Entering directory `/c/work/libusbx/libusbx/tests'
  CC       stress.o
  CC       testlib.o
  CCLD     stress.exe
make[2]: Leaving directory `/c/work/libusbx/libusbx/tests'
make[2]: Entering directory `/c/work/libusbx/libusbx'
make[2]: Nothing to be done for `all-am'.
make[2]: Leaving directory `/c/work/libusbx/libusbx'
make[1]: Leaving directory `/c/work/libusbx/libusbx'

mcuee@Vista64VM /c/work/libusbx/libusbx
$ gcc -v
Using built-in specs.
COLLECT_GCC=c:\mingw64_rvb\bin\gcc.exe
COLLECT_LTO_WRAPPER=c:/mingw64_rvb/bin/../libexec/gcc/x86_64-w64-mingw32/4.7.2/l
to-wrapper.exe
Target: x86_64-w64-mingw32
Configured with: /home/ruben/mingw-w64/src/gcc/configure --host=x86_64-w64-mingw
32 --build=x86_64-linux-gnu --target=x86_64-w64-mingw32 --with-sysroot=/home/rub
en/mingw-w64/mingw64mingw64/mingw64 --prefix=/home/ruben/mingw-w64/mingw64mingw6
4/mingw64 --with-gmp=/home/ruben/mingw-w64/prereq/x86_64-w64-mingw32/install --w
ith-mpfr=/home/ruben/mingw-w64/prereq/x86_64-w64-mingw32/install --with-mpc=/hom
e/ruben/mingw-w64/prereq/x86_64-w64-mingw32/install --with-ppl=/home/ruben/mingw
-w64/prereq/x86_64-w64-mingw32/install --with-cloog=/home/ruben/mingw-w64/prereq
/x86_64-w64-mingw32/install --disable-ppl-version-check --disable-cloog-version-
check --enable-cloog-backend=isl --with-host-libstdcxx='-static -lstdc++ -lm' --
enable-shared --enable-static --enable-threads=win32 --enable-plugins --disable-
multilib --enable-languages=c,lto,c++,objc,obj-c++,fortran,java --enable-libgomp
 --enable-fully-dynamic-string --enable-libstdcxx-time --disable-nls --disable-w
error --enable-checking=release --with-gnu-as --with-gnu-ld --disable-win32-regi
stry --disable-rpath --disable-werror --with-libiconv-prefix=/home/ruben/mingw-w
64/prereq/x86_64-w64-mingw32/install --with-pkgversion=rubenvb-4.7.2-release --w
ith-bugurl=mingw-w64-pub...@lists.sourceforge.net CC= CFLAGS='-O2 -march=nocona
-mtune=core2 -fomit-frame-pointer -momit-leaf-frame-pointer' LDFLAGS=
Thread model: win32
gcc version 4.7.2 (rubenvb-4.7.2-release)

-- 
Xiaofan

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_feb
_______________________________________________
libusbx-devel mailing list
libusbx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libusbx-devel

Reply via email to