summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorJason Evans <jasone@canonware.com>2017-04-24 18:47:10 (GMT)
committerJason Evans <jasone@canonware.com>2017-04-24 22:02:45 (GMT)
commit0f63396b2317dd1a456008819fbedecc372abf13 (patch)
treee83704d594e6ce49d47d4512aad524d4667066fb /include
parentcf6035e1ee60dd9245b119aadb2ccec592dde27d (diff)
downloadjemalloc-0f63396b2317dd1a456008819fbedecc372abf13.zip
jemalloc-0f63396b2317dd1a456008819fbedecc372abf13.tar.gz
jemalloc-0f63396b2317dd1a456008819fbedecc372abf13.tar.bz2
Remove --disable-cc-silence.
The explicit compiler warning suppression controlled by this option is universally desirable, so remove the ability to disable suppression. This partially resolves #580.
Diffstat (limited to 'include')
-rw-r--r--include/jemalloc/internal/jemalloc_internal_defs.h.in3
-rw-r--r--include/jemalloc/internal/jemalloc_internal_macros.h6
-rw-r--r--include/jemalloc/internal/util.h6
3 files changed, 2 insertions, 13 deletions
diff --git a/include/jemalloc/internal/jemalloc_internal_defs.h.in b/include/jemalloc/internal/jemalloc_internal_defs.h.in
index 7e83e7b..dbcbf26 100644
--- a/include/jemalloc/internal/jemalloc_internal_defs.h.in
+++ b/include/jemalloc/internal/jemalloc_internal_defs.h.in
@@ -127,9 +127,6 @@
/* Non-empty if the tls_model attribute is supported. */
#undef JEMALLOC_TLS_MODEL
-/* JEMALLOC_CC_SILENCE enables code that silences unuseful compiler warnings. */
-#undef JEMALLOC_CC_SILENCE
-
/* JEMALLOC_CODE_COVERAGE enables test code coverage analysis. */
#undef JEMALLOC_CODE_COVERAGE
diff --git a/include/jemalloc/internal/jemalloc_internal_macros.h b/include/jemalloc/internal/jemalloc_internal_macros.h
index 1b2802a..317b2ab 100644
--- a/include/jemalloc/internal/jemalloc_internal_macros.h
+++ b/include/jemalloc/internal/jemalloc_internal_macros.h
@@ -10,11 +10,7 @@
# define inline _inline
#endif
-#ifdef JEMALLOC_CC_SILENCE
-# define UNUSED JEMALLOC_ATTR(unused)
-#else
-# define UNUSED
-#endif
+#define UNUSED JEMALLOC_ATTR(unused)
#define ZU(z) ((size_t)z)
#define ZD(z) ((ssize_t)z)
diff --git a/include/jemalloc/internal/util.h b/include/jemalloc/internal/util.h
index 88662e8..304cb54 100644
--- a/include/jemalloc/internal/util.h
+++ b/include/jemalloc/internal/util.h
@@ -26,11 +26,7 @@
* wherever the compiler fails to recognize that the variable is never used
* uninitialized.
*/
-#ifdef JEMALLOC_CC_SILENCE
-# define JEMALLOC_CC_SILENCE_INIT(v) = v
-#else
-# define JEMALLOC_CC_SILENCE_INIT(v)
-#endif
+#define JEMALLOC_CC_SILENCE_INIT(v) = v
#ifdef __GNUC__
# define likely(x) __builtin_expect(!!(x), 1)