foxygit / doom Log in
commit 67712c6a6563a706339f7ceed9ca4c7ee85bf67f
Author:     Turo Lamminen <turotl@gmail.com>
AuthorDate: Tue Feb 13 19:07:15 2018 +0200
Commit:     Turo Lamminen <turotl@gmail.com>
CommitDate: Sat Feb 17 16:03:38 2018 +0200

    Add format attribute to DEH_printf
---
 src/deh_str.h | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/deh_str.h b/src/deh_str.h
index 7abb1c44..f8310d05 100644
--- 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);