# HG changeset patch # User Sebastien Jodogne # Date 1460371225 -7200 # Node ID e7ae0185b77e4bf96b547e0d5edf32b354d7f880 # Parent 83a2431a455f34981f5872013ad1be8ad00ff0b5 command line option "-Wno-int-to-pointer-cast" is valid for C/ObjC but not for C++ diff -r 83a2431a455f -r e7ae0185b77e Resources/CMake/Compiler.cmake --- a/Resources/CMake/Compiler.cmake Mon Apr 11 12:34:26 2016 +0200 +++ b/Resources/CMake/Compiler.cmake Mon Apr 11 12:40:25 2016 +0200 @@ -103,8 +103,8 @@ if (CMAKE_COMPILER_IS_GNUCXX) # Some additional C/C++ compiler flags for MinGW - SET(MINGW_NO_WARNINGS "-Wno-unused-but-set-variable -Wno-int-to-pointer-cast -Wno-unused-function -Wno-unused-variable") - SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${MINGW_NO_WARNINGS} -Wno-pointer-to-int-cast") + SET(MINGW_NO_WARNINGS "-Wno-int-to-pointer-cast -Wno-unused-function -Wno-unused-variable") + SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${MINGW_NO_WARNINGS} -Wno-pointer-to-int-cast -Wno-unused-but-set-variable") SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${MINGW_NO_WARNINGS}") # This is a patch for MinGW64