shithub: choc

Download patch

ref: 83c9d0516736ed78b42ebf2360b6e4de98a4fe6c
parent: 58e56f14a0464c7b3672385fc760f8017ca2cb0e
author: Turo Lamminen <[email protected]>
date: Wed Feb 14 05:40:59 EST 2018

Add format string attribute to DEH_String

--- a/src/deh_str.h
+++ b/src/deh_str.h
@@ -24,7 +24,7 @@
 
 // Used to do dehacked text substitutions throughout the program
 
-char *DEH_String(char *s);
+char *DEH_String(char *s) PRINTF_ARG_ATTR(1);
 void DEH_printf(char *fmt, ...) PRINTF_ATTR(1, 2);
 void DEH_fprintf(FILE *fstream, char *fmt, ...) PRINTF_ATTR(2, 3);
 void DEH_snprintf(char *buffer, size_t len, char *fmt, ...) PRINTF_ATTR(3, 4);