shithub: choc

Download patch

ref: 58e56f14a0464c7b3672385fc760f8017ca2cb0e
parent: f8235983b84c323f312d9b946454974747f68f6b
author: Turo Lamminen <turotl@gmail.com>
date: Wed Feb 14 05:40:40 EST 2018

Add GCC printf format string attribute

--- 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__