Skip to content

Commit

Permalink
fix windows warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
Juan E. Sanchez committed Oct 4, 2014
1 parent 5cf246b commit 0e652c7
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
7 changes: 5 additions & 2 deletions CMakeLists.txt
Expand Up @@ -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)
Expand Down
4 changes: 4 additions & 0 deletions src/pycomp/PythonSymdiffCommands.cc
Expand Up @@ -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"

Expand Down
2 changes: 1 addition & 1 deletion src/tclcomp/TclSymdiffCommands.cc
Expand Up @@ -33,7 +33,7 @@ static Tcl_Obj *returnList(Tcl_Interp *interp, const std::vector<size_t> &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<int>(index[i])));
}
return obj;
}
Expand Down

0 comments on commit 0e652c7

Please sign in to comment.