commit 58e56f14a0464c7b3672385fc760f8017ca2cb0e
Author: Turo Lamminen <turotl@gmail.com>
AuthorDate: Wed Feb 14 10:40:40 2018 +0200
Commit: Turo Lamminen <turotl@gmail.com>
CommitDate: Sat Feb 17 16:03:38 2018 +0200
Add GCC printf format string attribute
---
src/doomtype.h | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/doomtype.h b/src/doomtype.h
index 179edc67..745d9298 100644
--- a/src/doomtype.h
+++ b/src/doomtype.h
@@ -66,10 +66,12 @@
#endif
#define PRINTF_ATTR(fmt, first) __attribute__((format(printf, fmt, first)))
+#define PRINTF_ARG_ATTR(x) __attribute__((format_arg(x)))
#else
#define PACKEDATTR
#define PRINTF_ATTR(fmt, first)
+#define PRINTF_ARG_ATTR(x)
#endif
#ifdef __WATCOMC__