From 0edbcfad4a43048204086ad9a57422565763f946 Mon Sep 17 00:00:00 2001 From: Richard Fuchs Date: Wed, 7 May 2025 10:20:59 -0400 Subject: [PATCH] MT#62181 XmlRpcUtil: annotate printf format So that the compiler can warn about incorrect formats. Change-Id: I33063e770682a7d73b8d710ef0786ef5d3c43294 --- apps/xmlrpc2di/xmlrpc++/src/XmlRpcUtil.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/xmlrpc2di/xmlrpc++/src/XmlRpcUtil.h b/apps/xmlrpc2di/xmlrpc++/src/XmlRpcUtil.h index da01f6fe..d7190c20 100644 --- a/apps/xmlrpc2di/xmlrpc++/src/XmlRpcUtil.h +++ b/apps/xmlrpc2di/xmlrpc++/src/XmlRpcUtil.h @@ -50,10 +50,10 @@ namespace XmlRpc { //! Dump messages somewhere - static void log(int level, const char* fmt, ...); + static void log(int level, const char* fmt, ...) __attribute__((format(printf, 2, 3))); //! Dump error messages somewhere - static void error(const char* fmt, ...); + static void error(const char* fmt, ...) __attribute__((format(printf, 1, 2))); }; } // namespace XmlRpc