From: Eugeny MALTCHIKOV Date: Tue, 22 Oct 2019 06:08:38 +0000 (+0300) Subject: Enabling the -Wsign-compare and -Wconversion warnings in MEDCoupling and MEDCouplingR... X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=ffca47dadc949bb81ad970ce973d760a9984e4a3;p=tools%2Fmedcoupling.git Enabling the -Wsign-compare and -Wconversion warnings in MEDCoupling and MEDCouplingRemapper packages. --- diff --git a/src/MEDCoupling/CMakeLists.txt b/src/MEDCoupling/CMakeLists.txt index 04e0b5b3e..a2253b266 100644 --- a/src/MEDCoupling/CMakeLists.txt +++ b/src/MEDCoupling/CMakeLists.txt @@ -25,6 +25,10 @@ ENDIF(MEDCOUPLING_BUILD_TESTS) ### KILLER WARNINGS TO HELP INT64 MANAGEMENT #ADD_DEFINITIONS(-Wextra -Wsynth -Wno-unused-parameter -pedantic -Wall -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Wctor-dtor-privacy -Wnon-virtual-dtor -Woverloaded-virtual -Wreturn-type -Wno-endif-labels -Wsign-compare -Wmissing-format-attribute -Wno-multichar -Wno-deprecated-declarations -Wpacked -Wredundant-decls -Wlong-long -Wdisabled-optimization -Wunknown-pragmas -Wundef -Wreorder) +IF (NOT DEFINED MSVC) + ADD_DEFINITIONS(-Wsign-compare -Wconversion) +ENDIF() + INCLUDE_DIRECTORIES( ${CMAKE_CURRENT_BINARY_DIR}/../.. ${CMAKE_CURRENT_SOURCE_DIR}