MT#62181 XmlRpcUtil: annotate printf format

So that the compiler can warn about incorrect formats.

Change-Id: I33063e770682a7d73b8d710ef0786ef5d3c43294
master
Richard Fuchs 1 month ago
parent cbeee278e2
commit 0edbcfad4a

@ -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

Loading…
Cancel
Save