#66551 closed defect (fixed)

rapidjson-devel @20180424_1: error: 'sprintf' is deprecated

Reported by: ryandesign (Ryan Carsten Schmidt) Owned by: kencu (Ken)
Priority: Normal Milestone:
Component: ports Version: 2.8.0
Keywords: ventura Cc: MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)
Port: rapidjson-devel

Description

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.

Change History (1)

comment:1 Changed 22 months ago by kencu (Ken)

Owner: set to kencu
Resolution: fixed
Status: newclosed

In 6516b7b69d4bb5351be59aa1c171875e7be44e6d/macports-ports (master):

rapidjson-devel: disable Werror

closes: #66551

Note: See TracTickets for help on using tickets.