Reverse the cc-silence default.

Replace --enable-cc-silence with --disable-cc-silence, so that by
default people won't see spurious warnings when building jemalloc.
This commit is contained in:
Jason Evans 2014-04-14 22:49:23 -07:00
parent 24a4ba77e1
commit 644d414bc9
2 changed files with 8 additions and 9 deletions

View File

@ -71,10 +71,10 @@ any of the following arguments (not a definitive list) to 'configure':
versions of jemalloc can coexist in the same installation directory. For versions of jemalloc can coexist in the same installation directory. For
example, libjemalloc.so.0 becomes libjemalloc<suffix>.so.0. example, libjemalloc.so.0 becomes libjemalloc<suffix>.so.0.
--enable-cc-silence --disable-cc-silence
Enable code that silences non-useful compiler warnings. This is helpful Disable code that silences non-useful compiler warnings. This is mainly
when trying to tell serious warnings from those due to compiler useful during development when auditing the set of warnings that are being
limitations, but it potentially incurs a performance penalty. silenced.
--enable-debug --enable-debug
Enable assertions and validation code. This incurs a substantial Enable assertions and validation code. This incurs a substantial

View File

@ -577,18 +577,17 @@ cfghdrs_tup="include/jemalloc/jemalloc_defs.h:include/jemalloc/jemalloc_defs.h.i
cfghdrs_tup="${cfghdrs_tup} include/jemalloc/internal/jemalloc_internal_defs.h:${srcroot}include/jemalloc/internal/jemalloc_internal_defs.h.in" cfghdrs_tup="${cfghdrs_tup} include/jemalloc/internal/jemalloc_internal_defs.h:${srcroot}include/jemalloc/internal/jemalloc_internal_defs.h.in"
cfghdrs_tup="${cfghdrs_tup} test/include/test/jemalloc_test_defs.h:${srcroot}test/include/test/jemalloc_test_defs.h.in" cfghdrs_tup="${cfghdrs_tup} test/include/test/jemalloc_test_defs.h:${srcroot}test/include/test/jemalloc_test_defs.h.in"
dnl Do not silence irrelevant compiler warnings by default, since enabling this dnl Silence irrelevant compiler warnings by default.
dnl option incurs a performance penalty.
AC_ARG_ENABLE([cc-silence], AC_ARG_ENABLE([cc-silence],
[AS_HELP_STRING([--enable-cc-silence], [AS_HELP_STRING([--disable-cc-silence],
[Silence irrelevant compiler warnings])], [Do not silence irrelevant compiler warnings])],
[if test "x$enable_cc_silence" = "xno" ; then [if test "x$enable_cc_silence" = "xno" ; then
enable_cc_silence="0" enable_cc_silence="0"
else else
enable_cc_silence="1" enable_cc_silence="1"
fi fi
], ],
[enable_cc_silence="0"] [enable_cc_silence="1"]
) )
if test "x$enable_cc_silence" = "x1" ; then if test "x$enable_cc_silence" = "x1" ; then
AC_DEFINE([JEMALLOC_CC_SILENCE], [ ]) AC_DEFINE([JEMALLOC_CC_SILENCE], [ ])