ref: 5738407665325ab68fec11ce3be21fe8842d093a
parent: 2347699033e3e1660d2dc867667ef9acee995f1d
author: Turo Lamminen <[email protected]>
date: Tue Feb 13 14:33:17 EST 2018
Add format attribute to AddCmdLineParameter
--- 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 @@
#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);