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.
This commit is contained in:
parent
c69d628a82
commit
5702e7c0ca
@ -35,10 +35,10 @@ runInputParamCheck()
|
||||
#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
|
||||
|
Loading…
Reference in New Issue
Block a user