When building MITK project with clang using ninja, errors are thrown such as:
Utilities/IpPic/ipPicDelT.c:52:25: error: initializing 'char *' with an expression of type 'const char [61]' discards qualifiers [-Werror,-Wincompatible-pointer-types-discards-qualifiers] static char *what = { "@(#)mitkIpPicDelTag\t\tDKFZ (Dept. MBI)\t"__DATE__"\t$Revision$" }; ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
This occurs on both` Apple LLVM version 8.0.0` and Apple LLVM 9.0.0 on OSX10.11 and 10.13. Building the same source using xcodebuild works fine.
The full build log can be found here (macOS 10.13 Apple LLVM8):
http://sidt-hpc3/job/MC_ninja/build_type=Debug,matrixBuildNinja=macOS_13_Beta_XC8/40/console