diff options
Diffstat (limited to 'src/logger.h')
-rw-r--r-- | src/logger.h | 4 |
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 ; /** |