Commit 3cf1ef5b authored by Bernhard Nortmann's avatar Bernhard Nortmann
Browse files

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: default avatarBernhard Nortmann <bernhard.nortmann@web.de>
parent b00b9a7f
......@@ -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:
......
......@@ -17,7 +17,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
CC ?= gcc
CFLAGS = -g -O0 -Wall -Wextra
CFLAGS = -g -O0 -Wall -Wextra $(EXTRA_CFLAGS)
CFLAGS += -std=c99 $(DEFINES)
CFLAGS += -Iinclude/
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment