summaryrefslogtreecommitdiff
path: root/src/logger.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/logger.h')
-rw-r--r--src/logger.h27
1 files changed, 21 insertions, 6 deletions
diff --git a/src/logger.h b/src/logger.h
index 9e82670ad..40ea191c2 100644
--- a/src/logger.h
+++ b/src/logger.h
@@ -84,11 +84,19 @@ class Logger final
void log(const char *const log_text, ...)
#ifdef __GNUC__
#ifdef __OpenBSD__
+
__attribute__((__format__(printf, 2, 3)))
-#else
+#else // __OpenBSD__
+
+#ifdef ENABLE_CILKPLUS
+ __attribute__((__format__(gnu_printf, 1, 2)))
+#else // ENABLE_CILKPLUS
+
__attribute__((__format__(gnu_printf, 2, 3)))
-#endif
-#endif
+#endif // ENABLE_CILKPLUS
+
+#endif // __OpenBSD__
+#endif // __GNUC__
;
/**
@@ -98,10 +106,17 @@ class Logger final
#ifdef __GNUC__
#ifdef __OpenBSD__
__attribute__((__format__(printf, 2, 3)))
-#else
+#else // __OpenBSD__
+
+#ifdef ENABLE_CILKPLUS
+ __attribute__((__format__(gnu_printf, 1, 2)))
+#else // ENABLE_CILKPLUS
+
__attribute__((__format__(gnu_printf, 2, 3)))
-#endif
-#endif
+#endif // ENABLE_CILKPLUS
+
+#endif // __OpenBSD__
+#endif // __GNUC__
;
/**