# HG changeset patch # User Alain Mazy # Date 1722014118 -7200 # Node ID 7fd40079a8eeda3563e4615d843d32f9bbf04d3b # Parent 630a7114d7c70b531736c03bc9a96309c657ef80 ignore error on macos diff -r 630a7114d7c7 -r 7fd40079a8ee Resources/Orthanc/CMake/Compiler.cmake --- a/Resources/Orthanc/CMake/Compiler.cmake Fri Jul 26 18:15:54 2024 +0200 +++ b/Resources/Orthanc/CMake/Compiler.cmake Fri Jul 26 19:15:18 2024 +0200 @@ -233,8 +233,10 @@ elseif (${CMAKE_SYSTEM_NAME} STREQUAL "Darwin") - # fix this error that appears with recent compilers on MacOS: boost/mpl/aux_/integral_wrapper.hpp:73:31: error: integer value -1 is outside the valid range of values [0, 3] for this enumeration type [-Wenum-constexpr-conversion] - SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-enum-constexpr-conversion") + # ignore these errors that appear with recent compilers on MacOS: + # boost_1_69_0/boost/mpl/aux_/integral_wrapper.hpp:73:31: error: integer value -1 is outside the valid range of values [0, 3] for this enumeration type [-Wenum-constexpr-conversion] + # curl-8.9.0/lib/strerror.c:890:11: error: incompatible integer to pointer conversion initializing 'char *' with an expression of type 'int' [-Wint-conversion] + SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-enum-constexpr-conversion -Wno-int-conversion") add_definitions( -D_XOPEN_SOURCE=1