Merge pull request #3052 from AndersHoglund/ban_compiler_warnings

Disallow any compiler warnings by turning them into hard errors by the -Werror option.
This commit is contained in:
Martin Budden 2017-05-24 10:14:52 +01:00 committed by GitHub
commit 7cf5a0e684
2 changed files with 8 additions and 4 deletions

View File

@ -10,6 +10,8 @@ TRAVIS_REPO_SLUG=${TRAVIS_REPO_SLUG:=$USER/undefined}
BUILDNAME=${BUILDNAME:=travis}
TRAVIS_BUILD_NUMBER=${TRAVIS_BUILD_NUMBER:=undefined}
MAKE="make EXTRA_FLAGS=-Werror V=0"
CURL_BASEOPTS=(
"--retry" "10"
"--retry-max-time" "120" )
@ -47,7 +49,7 @@ elif [ $PUBLISHMETA ] ; then
fi
elif [ $TARGET ] ; then
make $TARGET || exit $?
$MAKE $TARGET || exit $?
if [ $PUBLISH_URL ] ; then
if [ -f ${TARGET_FILE}.bin ] ; then
@ -64,7 +66,7 @@ elif [ $TARGET ] ; then
fi
elif [ $GOAL ] ; then
make V=0 $GOAL || exit $?
$MAKE $GOAL || exit $?
if [ "test" == "$GOAL" ] ; then
lcov --directory . -b src/test --capture --output-file coverage.info 2>&1 | grep -E ":version '402\*', prefer.*'406\*" --invert-match
@ -74,5 +76,5 @@ elif [ $GOAL ] ; then
fi
else
make V=0 all
$MAKE all
fi

View File

@ -1169,7 +1169,9 @@ CFLAGS += $(ARCH_FLAGS) \
-D'__TARGET__="$(TARGET)"' \
-D'__REVISION__="$(REVISION)"' \
-save-temps=obj \
-MMD -MP
-MMD -MP \
$(EXTRA_FLAGS)
ASFLAGS = $(ARCH_FLAGS) \
-x assembler-with-cpp \