summaryrefslogtreecommitdiff
path: root/src/logger.h
diff options
context:
space:
mode:
authorChristopher James Halse Rogers <christopher.halse.rogers@canonical.com>2014-05-28 22:23:37 +0200
committerChristopher James Halse Rogers <christopher.halse.rogers@canonical.com>2014-05-28 22:23:37 +0200
commit8008fe2d8fa9c71f446022f2c4d7c52e8871a6ca (patch)
tree9e0c12108a47c214185959bd79ab7ca8644b0491 /src/logger.h
parentce1db5cfdf12f6ca15899fe3091023d41414c8ea (diff)
downloadlightdm-8008fe2d8fa9c71f446022f2c4d7c52e8871a6ca.tar.gz
Fix a whole bunch of warnings generated by Clang.
Mostly printf-format-not-literal, which is mostly just paranoia, but also some genuine bugs that I have no idea why GCC doesn't find (like not returning a value from a non-void function)
Diffstat (limited to 'src/logger.h')
-rw-r--r--src/logger.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/logger.h b/src/logger.h
index f139e78b..53f3bb80 100644
--- a/src/logger.h
+++ b/src/logger.h
@@ -44,10 +44,10 @@ gint logger_logprefix (Logger *self, gchar *buf, gulong buflen);
* output of logger_logprefix() and then passes the result to
* g_log()
*/
-void logger_logv (Logger *self, GLogLevelFlags log_level, const gchar *format, va_list ap);
+void logger_logv (Logger *self, GLogLevelFlags log_level, const gchar *format, va_list ap) __attribute__ ((format (printf, 3, 0)));
/*! \brief convenience wrapper around \c logger_logv() */
-void logger_log (Logger *self, GLogLevelFlags log_level, const gchar *format, ...);
+void logger_log (Logger *self, GLogLevelFlags log_level, const gchar *format, ...) __attribute__ ((format (printf, 3, 4)));
/* convenience wrappers around logger_log() */
#define l_debug(self, ...) \