From eaac53c6818af2a1499db96c9a806c78eafc049b Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jos=C3=A9=20Fonseca?= Date: Sat, 11 Jun 2011 12:11:12 +0100 Subject: [PATCH] Recognize printf format string in OS::DebugMessage. --- os.hpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/os.hpp b/os.hpp index 0716784..4376c97 100644 --- a/os.hpp +++ b/os.hpp @@ -59,7 +59,11 @@ void ReleaseMutex(void); bool GetProcessName(char *str, size_t size); bool GetCurrentDir(char *str, size_t size); -void DebugMessage(const char *format, ...); +void DebugMessage(const char *format, ...) +#ifdef __GNUC__ + __attribute__ ((format (printf, 1, 2))) +#endif +; #if defined _WIN32 || defined __CYGWIN__ /* We always use .def files on windows for now */ -- 2.7.4