[Adium-commits] adium 2006:d85b02c6740f: Add __attribute__((format...)) to AILog...
adium-commits at adiumx.com
adium-commits at adiumx.com
Tue Apr 28 05:56:37 UTC 2009
details: http://hg.adiumx.com/adium/rev/d85b02c6740f
revision: 2006:d85b02c6740f
author: David Smith <catfish.man at gmail.com>
date: Mon Apr 27 22:54:36 2009 -0700
Add __attribute__((format...)) to AILog*, so that we get warnings if it's misused
diffstat:
Frameworks/Adium Framework/Source/ESDebugAILog.h | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (15 lines):
diff -r 866b6f19c9f3 -r d85b02c6740f Frameworks/Adium Framework/Source/ESDebugAILog.h
--- a/Frameworks/Adium Framework/Source/ESDebugAILog.h Mon Apr 27 22:20:35 2009 -0700
+++ b/Frameworks/Adium Framework/Source/ESDebugAILog.h Mon Apr 27 22:54:36 2009 -0700
@@ -16,9 +16,9 @@
#ifdef DEBUG_BUILD
/* For a debug build, declare the AILog() function */
- void AILogWithPrefix (const char *signature, NSString *format, ...);
+ void AILogWithPrefix (const char *signature, NSString *format, ...) __attribute__((format(__NSString__, 2, 3)));
#define AILogWithSignature(fmt, args...) AILogWithPrefix(__PRETTY_FUNCTION__, fmt, ##args);
- void AILog (NSString *format, ...);
+ void AILog (NSString *format, ...) __attribute__((format(__NSString__, 1, 2)));
void AILogBacktrace();
#else
/* For a non-debug build, define it to be a comment so there is no overhead in using it liberally */
More information about the commits
mailing list