]> git.ipfire.org Git - thirdparty/squid.git/blobdiff - src/sbuf/SBuf.h
Enable compiler checks for printf-like SBuf methods (#1270)
[thirdparty/squid.git] / src / sbuf / SBuf.h
index e88a07ded36120c878c2436acb616e08c8e2fb45..2844c3701160af4ea8e6a7af4709d4672365a27a 100644 (file)
@@ -211,13 +211,13 @@ public:
      * \note arguments may be evaluated more than once, be careful
      *       of side-effects
      */
-    SBuf& Printf(const char *fmt, ...);
+    SBuf& Printf(const char *fmt, ...) PRINTF_FORMAT_ARG2;
 
     /** Append operation with printf-style arguments
      * \note arguments may be evaluated more than once, be careful
      *       of side-effects
      */
-    SBuf& appendf(const char *fmt, ...);
+    SBuf& appendf(const char *fmt, ...)  PRINTF_FORMAT_ARG2;
 
     /** Append operation, with vsprintf(3)-style arguments.
      * \note arguments may be evaluated more than once, be careful