diff options
author | Stephan Linz <linz@li-pro.net> | 2016-11-22 16:23:37 +0100 |
---|---|---|
committer | Stephan Linz <linz@li-pro.net> | 2016-11-23 14:13:19 +0100 |
commit | 394cc85045055967d1f07c20608352bdd6838f15 (patch) | |
tree | efd1c67a0dfb42f9b8194789fe47ad38f8ff6baa /travis-autogen.sh | |
parent | 6e43dc7e87b806349fc124023c27446b1f437073 (diff) | |
download | usbutils-394cc85045055967d1f07c20608352bdd6838f15.tar.gz |
travis-ci: add control files borrowed from libusb
- remove OSX support
- set shebang explicitly to Bash
Signed-off-by: Stephan Linz <linz@li-pro.net>
Diffstat (limited to 'travis-autogen.sh')
-rwxr-xr-x | travis-autogen.sh | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/travis-autogen.sh b/travis-autogen.sh new file mode 100755 index 0000000..2079933 --- /dev/null +++ b/travis-autogen.sh @@ -0,0 +1,41 @@ +#!/bin/bash + +# Warnings enabled +CFLAGS="-Wall -Wextra" + +CFLAGS+=" -Wbad-function-cast" +#CFLAGS+=" -Wcast-align" +CFLAGS+=" -Wchar-subscripts" +CFLAGS+=" -Wempty-body" +CFLAGS+=" -Wformat" +CFLAGS+=" -Wformat-security" +CFLAGS+=" -Winit-self" +CFLAGS+=" -Winline" +CFLAGS+=" -Wmissing-declarations" +CFLAGS+=" -Wmissing-include-dirs" +CFLAGS+=" -Wmissing-prototypes" +CFLAGS+=" -Wnested-externs" +CFLAGS+=" -Wold-style-definition" +CFLAGS+=" -Wpointer-arith" +CFLAGS+=" -Wredundant-decls" +CFLAGS+=" -Wshadow" +CFLAGS+=" -Wstrict-prototypes" +CFLAGS+=" -Wswitch-enum" +CFLAGS+=" -Wundef" +CFLAGS+=" -Wuninitialized" +CFLAGS+=" -Wunused" +CFLAGS+=" -Wwrite-strings" +CFLAGS+=" -fdiagnostics-color=auto" + +# warnings disabled on purpose +CFLAGS+=" -Wno-unused-parameter" +CFLAGS+=" -Wno-unused-function" +CFLAGS+=" -Wno-deprecated-declarations" + +# should be removed and the code fixed +CFLAGS+=" -Wno-incompatible-pointer-types-discards-qualifiers" + +# fails on warning +CFLAGS+=" -Werror" + +./autogen.sh |