At the moment, Travis-CI only considers a build as failing if there is
a compile issue. While this should obviously never happen in committed
code, less well-tested directories *cough*2.6.36*cough* occasionally broke.
This commit further strengthens the requirements, failing the build if
any warnings are present. The driver has built without warnings (sans
two specifically excluded false-positives, and three recently-noticed
true positives) for quite some time, so enabling this shouldn't actually
be too annoying.

In order to prevent the occasional warning generated within the kernel
headers themselves from breaking the build, we forcefully use "-isystem"
for key paths that are included by Kbuild as plain "-I".

Signed-off-by: Jason Gerecke <jason.gere...@wacom.com>
---
 .travis.yml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/.travis.yml b/.travis.yml
index 17412aa..196b7c3 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -30,4 +30,4 @@ install:
   - make -C ${KERNELDIR}/${KERNEL} defconfig prepare modules_prepare
 
 script:
-  - ./autogen.sh --with-kernel=${KERNELDIR}/${KERNEL} && make
+  - ./autogen.sh --with-kernel=${KERNELDIR}/${KERNEL} && make 
EXTRA_CFLAGS="-Werror -Wno-type-limits -Wno-unused-function -isystem 
${KERNELDIR}/${KERNEL}/arch/x86/include -isystem 
${KERNELDIR}/${KERNEL}/arch/x86/include/uapi -isystem 
${KERNELDIR}/${KERNEL}/include/linux"
-- 
2.9.3


------------------------------------------------------------------------------
_______________________________________________
Linuxwacom-devel mailing list
Linuxwacom-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linuxwacom-devel

Reply via email to