shithub: choc

Download patch

ref: 5c87d6b9053704750e3334400c813f583b116520
parent: e045c7670fb5b474b2b65ded47b98ff605da7ae0
author: Turo Lamminen <turotl@gmail.com>
date: Tue Feb 13 14:01:31 EST 2018

Add format attribute to ST_Message

--- a/src/hexen/st_start.h
+++ b/src/hexen/st_start.h
@@ -17,6 +17,8 @@
 #ifndef STSTART_H
 #define STSTART_H
 
+#include "doomtype.h"
+
 // HEADER FILES ------------------------------------------------------------
 
 // MACROS ------------------------------------------------------------------
@@ -26,7 +28,7 @@
 // PUBLIC FUNCTION PROTOTYPES ----------------------------------------------
 extern void ST_Init(void);
 extern void ST_Done(void);
-extern void ST_Message(char *message, ...);
+extern void ST_Message(char *message, ...) PRINTF_ATTR(1, 2);
 extern void ST_RealMessage(char *message, ...);
 extern void ST_Progress(void);
 extern void ST_NetProgress(void);