diff --git a/CMakeLists.txt b/CMakeLists.txt index c15d2ca..dfa2b39 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -32,8 +32,11 @@ ADD_DEFINITIONS(-DSTATIC_BUILD -D_USE_MATH_DEFINES) SET (CMAKE_CXX_WARNING_LEVEL 4) SET (FLEX "C:/cygwin/bin/flex.exe") SET (BISON "C:/cygwin/bin/bison.exe") -SET (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /fp:strict") -SET (CMAKE_C_FLAGS "${CMAKE_CXX_FLAGS} /fp:strict") +# warning C4251 for dll exports +# warning C4005 concerning macro redefines in stdint.h +# warning C4996: 'isatty': The POSIX name for this item is deprecated +SET (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /fp:strict /wd4251 /wd4005 /wd4996") +SET (CMAKE_C_FLAGS "${CMAKE_CXX_FLAGS} /fp:strict /wd4251 /wd4005 /wd4996") ELSE (WIN32) SET (FLEX flex) SET (BISON bison) diff --git a/src/pycomp/PythonSymdiffCommands.cc b/src/pycomp/PythonSymdiffCommands.cc index 03efa57..f3b498e 100644 --- a/src/pycomp/PythonSymdiffCommands.cc +++ b/src/pycomp/PythonSymdiffCommands.cc @@ -16,6 +16,10 @@ limitations under the License. /* removes Python_d.lib from any contention */ //#undef _DEBUG +#ifdef WIN32 +/* annoying warning on windows for function we don't use */ +#define HAVE_ROUND +#endif #include "Python.h" #include "import.h" diff --git a/src/tclcomp/TclSymdiffCommands.cc b/src/tclcomp/TclSymdiffCommands.cc index 9e008bf..6f4f95f 100644 --- a/src/tclcomp/TclSymdiffCommands.cc +++ b/src/tclcomp/TclSymdiffCommands.cc @@ -33,7 +33,7 @@ static Tcl_Obj *returnList(Tcl_Interp *interp, const std::vector &index) Tcl_Obj *obj = Tcl_NewObj(); for (size_t i = 0; i < index.size(); ++i) { - Tcl_ListObjAppendElement(interp, obj, Tcl_NewIntObj(index[i])); + Tcl_ListObjAppendElement(interp, obj, Tcl_NewIntObj(static_cast(index[i]))); } return obj; }