Mercurial > hg > orthanc
changeset 1968:e7ae0185b77e
command line option "-Wno-int-to-pointer-cast" is valid for C/ObjC but not for C++
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 11 Apr 2016 12:40:25 +0200 |
parents | 83a2431a455f |
children | 5e40f88f4eba |
files | Resources/CMake/Compiler.cmake |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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