changeset 531:7fd40079a8ee default tip

ignore error on macos
author Alain Mazy <am@orthanc.team>
date Fri, 26 Jul 2024 19:15:18 +0200
parents 630a7114d7c7
children
files Resources/Orthanc/CMake/Compiler.cmake
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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