From ffca47dadc949bb81ad970ce973d760a9984e4a3 Mon Sep 17 00:00:00 2001 From: Eugeny MALTCHIKOV Date: Tue, 22 Oct 2019 09:08:38 +0300 Subject: [PATCH] Enabling the -Wsign-compare and -Wconversion warnings in MEDCoupling and MEDCouplingRemapper packages. --- src/MEDCoupling/CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) 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} -- 2.39.2