aboutsummaryrefslogtreecommitdiff
path: root/include/jemalloc/jemalloc.h
diff options
context:
space:
mode:
authorColin Cross <ccross@android.com>2015-12-29 16:56:11 -0800
committerColin Cross <ccross@android.com>2015-12-29 16:56:13 -0800
commit7027478cb8b35dbc6d14e7bb0c7c6fc883aa8fc0 (patch)
tree980d95eb77fb2e9dd88da62b12edd4da0b2c2e56 /include/jemalloc/jemalloc.h
parent89d0f3c9855c6265ef73f3cb0a4e3808ec59617f (diff)
downloadjemalloc-7027478cb8b35dbc6d14e7bb0c7c6fc883aa8fc0.tar.gz
Fix some warnings
Fix unsupported attribute warnings when compiling with clang, and comparing unsigned >= 0 warnings. Change-Id: Icbb7a381b77877ab58df4fb466e227068a68c3ff
Diffstat (limited to 'include/jemalloc/jemalloc.h')
-rw-r--r--include/jemalloc/jemalloc.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/jemalloc/jemalloc.h b/include/jemalloc/jemalloc.h
index 05e93c4..1d2e9b4 100644
--- a/include/jemalloc/jemalloc.h
+++ b/include/jemalloc/jemalloc.h
@@ -11,7 +11,9 @@ extern "C" {
/* #undef JEMALLOC_HAVE_ATTR_ALLOC_SIZE */
/* Defined if format(gnu_printf, ...) attribute is supported. */
+#if !defined(__clang__)
#define JEMALLOC_HAVE_ATTR_FORMAT_GNU_PRINTF
+#endif
/* Defined if format(printf, ...) attribute is supported. */
#define JEMALLOC_HAVE_ATTR_FORMAT_PRINTF