]> SALOME platform Git repositories - tools/medcoupling.git/commitdiff
Salome HOME
Enabling the -Wsign-compare and -Wconversion warnings in MEDCoupling and MEDCouplingR...
authorEugeny MALTCHIKOV <emv@salomex.nnov.opencascade.com>
Tue, 22 Oct 2019 06:08:38 +0000 (09:08 +0300)
committeremv <emv@opencascade.com>
Tue, 22 Oct 2019 13:23:38 +0000 (16:23 +0300)
src/MEDCoupling/CMakeLists.txt

index 04e0b5b3ec88ab787468611b8b042fb70963ed49..a2253b26689963803f466fe27d4b59353fd227a2 100644 (file)
@@ -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}