summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorJason Evans <jasone@canonware.com>2015-07-22 22:44:47 (GMT)
committerJason Evans <jasone@canonware.com>2015-07-22 22:44:47 (GMT)
commite42c309eba6c5084dc0abda9b211e91e2c548fdf (patch)
treecb8ecc714c61194b7fd6b90b7d62592e25833548 /test
parent1b0e4abbfdbcc1c1a71d1f617adb19951109bfce (diff)
downloadjemalloc-e42c309eba6c5084dc0abda9b211e91e2c548fdf.zip
jemalloc-e42c309eba6c5084dc0abda9b211e91e2c548fdf.tar.gz
jemalloc-e42c309eba6c5084dc0abda9b211e91e2c548fdf.tar.bz2
Add JEMALLOC_FORMAT_PRINTF().
Replace JEMALLOC_ATTR(format(printf, ...). with JEMALLOC_FORMAT_PRINTF(), so that configuration feature tests can omit the attribute if it would cause extraneous compilation warnings.
Diffstat (limited to 'test')
-rw-r--r--test/include/test/test.h4
-rw-r--r--test/src/test.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/test/include/test/test.h b/test/include/test/test.h
index 3aa0835..7a163ac 100644
--- a/test/include/test/test.h
+++ b/test/include/test/test.h
@@ -319,8 +319,8 @@ label_test_end: \
} \
} while (0)
-void test_skip(const char *format, ...) JEMALLOC_ATTR(format(printf, 1, 2));
-void test_fail(const char *format, ...) JEMALLOC_ATTR(format(printf, 1, 2));
+void test_skip(const char *format, ...) JEMALLOC_FORMAT_PRINTF(1, 2);
+void test_fail(const char *format, ...) JEMALLOC_FORMAT_PRINTF(1, 2);
/* For private use by macros. */
test_status_t p_test(test_t *t, ...);
diff --git a/test/src/test.c b/test/src/test.c
index 0f8bd49..8173614 100644
--- a/test/src/test.c
+++ b/test/src/test.c
@@ -5,7 +5,7 @@ static test_status_t test_counts[test_status_count] = {0, 0, 0};
static test_status_t test_status = test_status_pass;
static const char * test_name = "";
-JEMALLOC_ATTR(format(printf, 1, 2))
+JEMALLOC_FORMAT_PRINTF(1, 2)
void
test_skip(const char *format, ...)
{
@@ -18,7 +18,7 @@ test_skip(const char *format, ...)
test_status = test_status_skip;
}
-JEMALLOC_ATTR(format(printf, 1, 2))
+JEMALLOC_FORMAT_PRINTF(1, 2)
void
test_fail(const char *format, ...)
{