gecko-dev/build/autoconf
Chris Peterson b22c76c625 Bug 1258175 - Remove broken -Wunreachable-code-return and -Wunreachable-code-aggressive checks. r=glandium
compiler-opts.m4's check for `MOZ_CXX_SUPPORTS_WARNING(-W, unreachable-code-return, ac_cxx_has_wunreachable_code_return)` is broken. The C/C++ code that configure emits for MOZ_CXX_SUPPORTS_WARNING() actually contains a -Wunreachable-code-return warning and, thus, doesn't actually detect that clang supports the -Wunreachable-code-return flag.

This configure code in MOZ_CXX_SUPPORTS_WARNING():

  AC_TRY_COMPILE([],
                 [return(0);],
                 $3="yes",
                 $3="no")

generates something like:

  int main() {
  return(0);
  ; return 0; }

where the second return, automatically emitted by configure, is unreachable and causes a -Wunreachable-code-return warning.

The fix is to remove the redundant return(0) from MOZ_CXX_SUPPORTS_WARNING(). This allows clang's -Wunreachable-code-return flag to be detected, but then -Wunreachable-code-return breaks other configure checks, including third-party libraries' configure checks (in particular jemalloc) that also have redundant `return(0)`. So all the third-party libraries' configure checks would need to be fixed upstream, which seems like more hassle than the value of the -Wunreachable-code-return warnings.
2016-03-19 00:10:37 -07:00
..
acwinpaths.m4
alloc.m4
altoptions.m4 Bug 1253203 - Move parts of configure.py into sandboxed moz.configure. r=nalexander,r=chmanchester 2016-03-08 15:41:32 +09:00
android.m4 Bug 1255305 - Uniformize CPU_ARCH between old-configure.in and js/src/old-configure.in. r=chmanchester 2016-03-15 07:34:50 +09:00
arch.m4
clang-plugin.m4 Bug 1255211 - Add profiledata to the list of LLVM libraries used by the clang plugin; r=jrmuizel 2016-03-10 10:06:51 -05:00
clean-config.sh
codeset.m4
compiler-opts.m4 Bug 1258175 - Remove broken -Wunreachable-code-return and -Wunreachable-code-aggressive checks. r=glandium 2016-03-19 00:10:37 -07:00
config.guess
config.status.m4 Bug 1253553 - Move --enable-artifact-builds, --disable-compile-environment and --enable-build-backend to moz.configure. r=nalexander,r=chmanchester 2016-03-08 15:41:32 +09:00
config.sub
expandlibs.m4
ffi.m4 Bug 1257468 - Replace tests on BUILDING_JS with tests on MOZ_BUILD_APP==js. r=nalexander 2016-03-22 11:09:42 +09:00
frameptr.m4
hooks.m4
hotfixes.m4
icu.m4 Bug 1257468 - Replace tests on BUILDING_JS with tests on MOZ_BUILD_APP==js. r=nalexander 2016-03-22 11:09:42 +09:00
install-sh
ios.m4
jemalloc.m4 Bug 1257468 - Replace tests on BUILDING_JS with tests on MOZ_BUILD_APP==js. r=nalexander 2016-03-22 11:09:42 +09:00
linux.m4
lto.m4
mozcommonheader.m4
mozheader.m4
mozprog.m4
nspr-build.m4 Bug 1257468 - Replace tests on BUILDING_JS with tests on MOZ_BUILD_APP==js. r=nalexander 2016-03-22 11:09:42 +09:00
nspr.m4
nss.m4
pkg.m4
rust.m4
subconfigure.m4 Bug 1254987 - Get the subconfigure working properly for mail/configure.in. r=glandium 2016-03-09 23:19:00 +01:00
toolchain.m4 Bug 1175546 - Update GCC to 4.8.5 and bump minimum GCC version required to build. r=froydnj 2016-03-12 09:03:37 +09:00
winsdk.m4
wrapper.m4
zlib.m4 bug 1244743 - Replace MOZ_NATIVE_X with MOZ_SYSTEM_X. r=gps 2016-02-01 10:49:34 -05:00