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;