correct warnings

This commit is contained in:
mayeut 2015-10-10 18:24:57 +02:00
parent 229d9cdb9c
commit d60937922f
1 changed files with 2 additions and 1 deletions

View File

@ -18,6 +18,7 @@ if("$ENV{TRAVIS_OS_NAME}" STREQUAL "windows")
set( CTEST_BUILD_COMMAND "nmake" )
else()
set( CTEST_CMAKE_GENERATOR "Unix Makefiles") # Always makefile in travis-ci environment
set( CCFLAGS_WARNING "-Wall -Wextra -Wconversion -Wno-unused-parameter -Wdeclaration-after-statement")
endif()
if ("$ENV{OPJ_BUILD_CONFIGURATION}" STREQUAL "")
@ -91,7 +92,7 @@ set( CACHE_CONTENTS "
CMAKE_BUILD_TYPE:STRING=${CTEST_BUILD_CONFIGURATION}
# Warning level
CMAKE_C_FLAGS:STRING= ${CCFLAGS_ARCH} -Wall -Wextra -Wconversion -Wno-unused-parameter -Wdeclaration-after-statement
CMAKE_C_FLAGS:STRING= ${CCFLAGS_ARCH} ${CCFLAGS_WARNING}
# Use to activate the test suite
BUILD_TESTING:BOOL=${BUILD_TESTING}