shithub: choc

Download patch

ref: 67712c6a6563a706339f7ceed9ca4c7ee85bf67f
parent: e064e07828dec6de7d8c0d07c0ec125d75c80843
author: Turo Lamminen <[email protected]>
date: Tue Feb 13 14:07:15 EST 2018

Add format attribute to DEH_printf

--- a/src/deh_str.h
+++ b/src/deh_str.h
@@ -20,10 +20,12 @@
 
 #include <stdio.h>
 
+#include "doomtype.h"
+
 // Used to do dehacked text substitutions throughout the program
 
 char *DEH_String(char *s);
-void DEH_printf(char *fmt, ...);
+void DEH_printf(char *fmt, ...) PRINTF_ATTR(1, 2);
 void DEH_fprintf(FILE *fstream, char *fmt, ...);
 void DEH_snprintf(char *buffer, size_t len, char *fmt, ...);
 void DEH_AddStringReplacement(char *from_text, char *to_text);