sprintf() has been deprecated in MacOS 13.0 SDK causing warnings to be emitted and since warnings are treated as errors, compilation fails...
In file included from /Users/svenn/GITroot/pixie-base-dependencies/json-rpc-cxx/test/main.cpp:2:
/json-rpc-cxx/vendor/doctest/doctest.h:3725:1: error: 'sprintf' is deprecated: This function is provided for compatibility reasons only. Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead. [-Werror,-Wdeprecated-declarations]
DOCTEST_TO_STRING_OVERLOAD(char, "%d")
^
/json-rpc-cxx/vendor/doctest/doctest.h:3721:14: note: expanded from macro 'DOCTEST_TO_STRING_OVERLOAD'
std::sprintf(buf, fmt, in); \
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdio.h:188:1: note: 'sprintf' has been explicitly marked deprecated here
__deprecated_msg("This function is provided for compatibility reasons only. Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead.")
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/sys/cdefs.h:215:48: note: expanded from macro '__deprecated_msg'
#define __deprecated_msg(_msg) __attribute__((__deprecated__(_msg)))
^
sprintf() has been deprecated in MacOS 13.0 SDK causing warnings to be emitted and since warnings are treated as errors, compilation fails...