summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2021-01-20 20:43:14 +0100
committerMax Kellermann <max@musicpd.org>2021-01-20 20:43:16 +0100
commit2a8c420cff6844266bccc444af061027164f3403 (patch)
tree2d5d94b7488cfd983bd7bfe9bdcf43090a77a0b7
parentec1e04a65ddae1f65b6fb84101acc827646585fb (diff)
client/Response: add `printf` attribute
-rw-r--r--src/client/Response.hxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/client/Response.hxx b/src/client/Response.hxx
index 1bf0e7c1e..00c1566fc 100644
--- a/src/client/Response.hxx
+++ b/src/client/Response.hxx
@@ -75,6 +75,8 @@ public:
bool Write(const void *data, size_t length) noexcept;
bool Write(const char *data) noexcept;
bool FormatV(const char *fmt, std::va_list args) noexcept;
+
+ gcc_printf(2,3)
bool Format(const char *fmt, ...) noexcept;
static constexpr size_t MAX_BINARY_SIZE = 8192;