--- sprintf is deprecated on macOS. Silence this warning by silencing -Wdeprecated-declartions.
#if __GUNC__ >= 3 && defined(__APPLE__) can be used as alternative if we don't want to disable this warning on every system. lib/vasnprintf.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/vasnprintf.c b/lib/vasnprintf.c index 01d18bf59..577dbbcd3 100644 --- a/lib/vasnprintf.c +++ b/lib/vasnprintf.c @@ -68,6 +68,11 @@ # pragma GCC diagnostic ignored "-Wanalyzer-null-argument" #endif +/* Using sprintf here is safe. Silence -Wdeprecated-declartions warning. */ +#if __GNUC__ >= 3 +# pragma GCC diagnostic ignored "-Wdeprecated-declarations" +#endif + #include <alloca.h> /* Specification. */ base-commit: 6ec9bc73686fd42d0a1a82c914d89176745cddbd -- 2.37.1 (Apple Git-137.1)