travis: remove -Werror
authorLudovic Rousseau <ludovic.rousseau@free.fr>
Wed, 4 Jan 2017 19:10:35 +0000 (20:10 +0100)
committerLudovic Rousseau <ludovic.rousseau@free.fr>
Wed, 4 Jan 2017 21:57:36 +0000 (22:57 +0100)
Using -Werror in CFLAGS make ./configure to fails with:
 checking whether the C compiler works... no
 configure: error: in `/home/travis/build/LudovicRousseau/libusb':
 configure: error: C compiler cannot create executables
 See `config.log' for more details

-Werror had no effect because CFLAGS was _not_ exported.

travis-autogen.sh

index 2079933..dd3af0b 100755 (executable)
@@ -35,7 +35,6 @@ CFLAGS+=" -Wno-deprecated-declarations"
 # should be removed and the code fixed
 CFLAGS+=" -Wno-incompatible-pointer-types-discards-qualifiers"
 
-# fails on warning
-CFLAGS+=" -Werror"
+export CFLAGS
 
 ./autogen.sh