From 3cf1ef5b2f6afe47e614cb7a26f026b907b9cceb Mon Sep 17 00:00:00 2001 From: Bernhard Nortmann Date: Wed, 13 Apr 2016 12:55:20 +0200 Subject: [PATCH] travis-ci: Be more strict on build checks After eliminating all warnings, we can disallow them for future builds. This is done by passing an additional "-Werror" flag from the Travis build step. Introducing new warnings will cause a (CI) build failure from now on. Signed-off-by: Bernhard Nortmann --- .travis.yml | 6 +++--- Makefile | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.travis.yml b/.travis.yml index 84b8b7f..5da1f51 100644 --- a/.travis.yml +++ b/.travis.yml @@ -30,10 +30,10 @@ before_install: brew install libusb; fi -# build by simply using the Makefile +# build using the Makefile, treat all warnings as errors script: - - make - - make misc + - make EXTRA_CFLAGS=-Werror + - make misc EXTRA_CFLAGS=-Werror # turn off email notifications notifications: diff --git a/Makefile b/Makefile index 881cf83..ee07786 100644 --- a/Makefile +++ b/Makefile @@ -17,7 +17,7 @@ # along with this program. If not, see . CC ?= gcc -CFLAGS = -g -O0 -Wall -Wextra +CFLAGS = -g -O0 -Wall -Wextra $(EXTRA_CFLAGS) CFLAGS += -std=c99 $(DEFINES) CFLAGS += -Iinclude/