From c34325fee7ff4ea030778b8092eeefd9cfc147dd Mon Sep 17 00:00:00 2001 From: Joseph Henry Date: Fri, 6 May 2022 17:25:15 -0700 Subject: [PATCH] Fix attribute placement for debugging functions (#1587) --- node/Bond.hpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/node/Bond.hpp b/node/Bond.hpp index 611705eab..e8a5898c0 100644 --- a/node/Bond.hpp +++ b/node/Bond.hpp @@ -1142,6 +1142,9 @@ class Bond { * */ void log(const char* fmt, ...) +#ifdef __GNUC__ + __attribute__((format(printf, 2, 3))) +#endif { #ifdef ZT_TRACE time_t rawtime; @@ -1171,6 +1174,9 @@ class Bond { * */ void debug(const char* fmt, ...) +#ifdef __GNUC__ + __attribute__((format(printf, 2, 3))) +#endif { #ifdef ZT_DEBUG time_t rawtime;