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

    Add format attribute to AddCmdLineParameter
---
 src/setup/execute.h | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/setup/execute.h b/src/setup/execute.h
index d298b239..febe411c 100644
--- a/src/setup/execute.h
+++ b/src/setup/execute.h
@@ -15,6 +15,7 @@
 #ifndef TESTCONFIG_H
 #define TESTCONFIG_H

+#include "doomtype.h"
 #include "textscreen.h"

 typedef struct execute_context_s execute_context_t;
@@ -27,7 +28,7 @@ typedef struct execute_context_s execute_context_t;
 #define IWAD_CHEX     (1 << 5)       /* chex.wad */

 execute_context_t *NewExecuteContext(void);
-void AddCmdLineParameter(execute_context_t *context, char *s, ...);
+void AddCmdLineParameter(execute_context_t *context, char *s, ...) PRINTF_ATTR(2, 3);
 void PassThroughArguments(execute_context_t *context);
 int ExecuteDoom(execute_context_t *context);
 int FindInstalledIWADs(void);