summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/mspace.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mspace.h b/src/mspace.h
index 46a6a56..bd5fbae 100644
--- a/src/mspace.h
+++ b/src/mspace.h
@@ -9,7 +9,7 @@ extern "C" {
//typedef unsigned long size_t;
typedef void (*mspace_abort_t)(void *user_data);
-typedef void (*mspace_print_t)(void *user_data, const char *format, ...);
+typedef void (*mspace_print_t)(void *user_data, const char *format, ...) __attribute__((format(gnu_printf, 2, 3)));
void mspace_set_abort_func(mspace_abort_t f);
void mspace_set_print_func(mspace_print_t f);