[MacPorts] #66551: rapidjson-devel @20180424_1: error: 'sprintf' is deprecated
MacPorts
noreply at macports.org
Sun Dec 25 06:34:20 UTC 2022
#66551: rapidjson-devel @20180424_1: error: 'sprintf' is deprecated
------------------------+-----------------------------
Reporter: ryandesign | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.8.0
Keywords: ventura | Port: rapidjson-devel
------------------------+-----------------------------
https://build.macports.org/builders/ports-
13_x86_64-builder/builds/6412/steps/install-port/logs/stdio
{{{
example/jsonx/jsonx.cpp:37:43: 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]
return WriteNumberElement(buffer, sprintf(buffer, "%d", i));
^
}}}
20180424 seems like a fairly old version. Perhaps updating the port to a
newer version would help. If not, the problem should be reported to the
developers.
--
Ticket URL: <https://trac.macports.org/ticket/66551>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list