summaryrefslogtreecommitdiff
path: root/include/logger.h
diff options
context:
space:
mode:
authoraquanight <aquanight@e03df62e-2008-0410-955e-edbf42e46eb7>2008-03-30 02:48:54 +0000
committeraquanight <aquanight@e03df62e-2008-0410-955e-edbf42e46eb7>2008-03-30 02:48:54 +0000
commit58385dd458e927994957b6d603f7f9da3fc52e14 (patch)
tree70c39a58446bd4f60205a9c34cac78524a67dc54 /include/logger.h
parentbca70575cb3d58127f80d92a388b60b5f5ed2fde (diff)
Commit -Wformat=2 -Wmissing-format-attributes, printf-like functions in inspircd now get treated like printf (meaning compile-time check goodness) in GCC
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9217 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'include/logger.h')
-rw-r--r--include/logger.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/logger.h b/include/logger.h
index 596f98aee..25dcea85f 100644
--- a/include/logger.h
+++ b/include/logger.h
@@ -253,7 +253,7 @@ class CoreExport LogManager : public classbase
* @param loglevel Log message level (DEBUG, VERBOSE, DEFAULT, SPARSE, NONE)
* @param msg The format of the message to be logged. See your C manual on printf() for details.
*/
- void Log(const std::string &type, int loglevel, const char *fmt, ...);
+ void Log(const std::string &type, int loglevel, const char *fmt, ...) CUSTOM_PRINTF(4, 5);
};
#endif