summaryrefslogtreecommitdiff
path: root/src/logger.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-06-03 20:50:20 +0300
committerAndrei Karas <akaras@inbox.ru>2013-06-03 20:50:20 +0300
commit88e2d16c070f480e1892044f329cd38df298003d (patch)
treeafe3b092835b8afe3ab9f364efa0d154822ecfa8 /src/logger.h
parent0bc270da9261a36527261432780ea30e8d39aff7 (diff)
downloadmv-88e2d16c070f480e1892044f329cd38df298003d.tar.gz
mv-88e2d16c070f480e1892044f329cd38df298003d.tar.bz2
mv-88e2d16c070f480e1892044f329cd38df298003d.tar.xz
mv-88e2d16c070f480e1892044f329cd38df298003d.zip
apply some OpenBSD fixes.
Diffstat (limited to 'src/logger.h')
-rw-r--r--src/logger.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/logger.h b/src/logger.h
index 32499ee49..8b484e8f5 100644
--- a/src/logger.h
+++ b/src/logger.h
@@ -76,8 +76,12 @@ class Logger final
*/
void log(const char *const log_text, ...)
#ifdef __GNUC__
+#ifdef __OpenBSD__
+ __attribute__((__format__(printf, 2, 3)))
+#else
__attribute__((__format__(gnu_printf, 2, 3)))
#endif
+#endif
;
/**