]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - sys.h
patch from div0 that enables printf format warnings in gcc
[xonotic/darkplaces.git] / sys.h
diff --git a/sys.h b/sys.h
index 278c7982fa8f545e0aacd8b61ae361c821783f8a..d02ae24466a420f09356c85a34a4e380da09cf49 100644 (file)
--- a/sys.h
+++ b/sys.h
@@ -61,7 +61,7 @@ char *Sys_TimeString(const char *timeformat);
 //
 // system IO interface (these are the sys functions that need to be implemented in a new driver atm)
 //
-void Sys_Error (const char *error, ...);
+void Sys_Error (const char *error, ...) DP_FUNC_PRINTF(1);
 // an error will cause the entire program to exit
 
 void Sys_PrintToTerminal(const char *text);