projects
/
tools
/
apitrace.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d4405df
)
Recognize printf format string in OS::DebugMessage.
author
José Fonseca
<jose.r.fonseca@gmail.com>
Sat, 11 Jun 2011 11:11:12 +0000
(12:11 +0100)
committer
José Fonseca
<jose.r.fonseca@gmail.com>
Sat, 11 Jun 2011 11:11:12 +0000
(12:11 +0100)
os.hpp
patch
|
blob
|
history
diff --git
a/os.hpp
b/os.hpp
index
0716784
..
4376c97
100644
(file)
--- 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 */