ref: 5702e7c0caa1c9f90e07a7478f61d775665a6517
parent: c69d628a8237d9c180c1195326170b3687bf8501
author: Martin Storsjö <martin@martin.st>
date: Fri Jan 16 09:00:13 EST 2015
Build using -Werror in travis unit tests This makes all compiler warnings to be treated as errors. This allows catching warnings that are introduced, that may only be visible with some compilers. This option is only added within travis unit tests, not during normal builds, so there is no risk of unnecessarily breaking builds on new/untested systems.
--- a/run_Test.sh
+++ b/run_Test.sh
@@ -35,10 +35,10 @@
#usage: runUnitTest
runUnitTest()
{
- make -B ENABLE64BIT=Yes BUILDTYPE=Release all plugin test
- make -B ENABLE64BIT=Yes BUILDTYPE=Debug all plugin test
- make -B ENABLE64BIT=No BUILDTYPE=Release all plugin test
- make -B ENABLE64BIT=No BUILDTYPE=Debug all plugin test
+ CFLAGS=-Werror make -B ENABLE64BIT=Yes BUILDTYPE=Release all plugin test
+ CFLAGS=-Werror make -B ENABLE64BIT=Yes BUILDTYPE=Debug all plugin test
+ CFLAGS=-Werror make -B ENABLE64BIT=No BUILDTYPE=Release all plugin test
+ CFLAGS=-Werror make -B ENABLE64BIT=No BUILDTYPE=Debug all plugin test
return $?
}
#usage: runPrepareAndBinaryTest $TestBitStream