gecko-dev/build
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
..
annotationProcessors Bug 1244875 - Update binding generator; r=snorp 2016-02-09 17:27:28 -05:00
autoconf Bug 1258175 - Remove broken -Wunreachable-code-return and -Wunreachable-code-aggressive checks. r=glandium 2016-03-19 00:10:37 -07:00
build-clang Bug 1251936 - Part 6: Update clang-cl to LLVM r262971 2016-03-10 17:35:19 -05:00
clang-plugin Bug 1254247 - Ignore implicit Expr wrappers due to temporary cleanup in MUST_USE analysis, r=ehsan 2016-03-11 18:29:47 -05:00
compare-mozconfig bug 1255479 - make `mach python-tests` use TestResolver for discovery, make `mach test` work for python tests. r=nalexander 2016-03-10 12:30:10 -05:00
docs Bug 1258760 - Pre: Document how to produce Android Gradle dependencies. r=gps 2016-03-21 21:07:41 -07:00
gabi++ Bug 864843 - Part 2. Add moz.build for gabi++ r=glandium 2015-10-19 22:25:44 -07:00
macosx Bug 700997 - enable l10n-check on mac; r=glandium 2016-02-02 09:04:40 -05:00
mobile Bug 1255527 - Remove sutagent/watcher; r=jmaher 2016-03-15 08:21:30 -06:00
moz.configure Bug 1258619 - Properly sandbox functions inside a template. r=chmanchester 2016-03-23 13:24:54 +09:00
package/mac_osx
pgo Bug 1255567 - Sign quitter extension for valgrind-test and pgo/profileserver, r=jgriffin 2016-03-10 15:37:51 -05:00
pymake
release
sanitizers Bug 1250995 - Consolidate some NSPR fd-related leak suppressions. r=erahm 2016-02-24 14:19:00 +01:00
stlport Bug 1245022 - Kill stlport's Makefile.in. r=mshal 2016-02-03 08:41:22 +09:00
unix Bug 1255813 - Remove build system support for Solaris, HPUX and AIX. r=ted 2016-03-15 07:34:50 +09:00
util Bug 1156885 - Fix and validate perfherder output;r=jmaher 2016-03-01 15:47:48 -05:00
valgrind Bug 1255567 - Sign quitter extension for valgrind-test and pgo/profileserver, r=jgriffin 2016-03-10 15:37:51 -05:00
win32 Bug 1246550 - Don't run autobinscope.py with clang-cl; r=glandium 2016-02-09 15:35:03 -05:00
win64
.lldbinit.in
Makefile.in Bug 1256401 - Part 2: Remove references to b2gdroid. r=fabrice 2016-03-18 14:41:51 -07:00
__init__.py
appini_header.py
application.ini Bug 1247162 - Generate a header defining MOZ_SOURCE_*. r=mshal 2016-02-12 07:16:14 +09:00
automation-build.mk Bug 1224490 - Kill LIBXUL_DIST. r=mshal 2015-11-17 10:00:19 +09:00
automation.py.in Bug 1034290 - Use structured log output for test results in reftest, r=jmaher 2016-02-05 15:44:20 -05:00
binary-location.mk
buildconfig.py
checksums.py
defines.sh
dumbmake-dependencies Bug 1218612 - DevTools server/shared updated in dumbmake. r=fitzgen 2015-10-27 16:28:10 -05:00
gecko_templates.mozbuild Bug 1224642 - Don't allow arguments to the XPCOMBinaryComponent template. r=gps 2015-11-19 08:05:51 +09:00
gen_test_packages_manifest.py Bug 1238079 - remove the desktop web runtime; r=fabrice,mossop,gps,jryans,jmaher,marco 2016-03-07 13:33:12 -08:00
genrc.sh
gyp.mozbuild Bug 1198458: Rollup of changes previously applied to media/webrtc/trunk/webrtc and fixes to those rs=jesup r=froyd,jib,bwc,jesup,gcp,sotaro,pkerr,pehrsons 2015-11-18 15:03:25 -05:00
mach_bootstrap.py Bug 1252601 - Handle requests errors gracefully when submitting telemetry data r=gps 2016-03-03 12:29:46 -05:00
moz-automation.mk Bug 1077670 - Package tests in parallel. r=gps 2015-10-13 14:10:10 -07:00
moz.build Bug 1255527 - Remove sutagent/watcher; r=jmaher 2016-03-15 08:21:30 -06:00
mozconfig.automation
mozconfig.cache Bug 1229613 - Properly disable sccache on PGO builds. r=mshal 2015-12-03 13:34:02 +09:00
mozconfig.clang-cl Bug 1042132 - Part 3: Add a MOZCONFIG helper script that lets you pick clang-cl; r=rail 2016-02-08 14:55:31 -05:00
mozconfig.common Bug 1254873 - Make --disable-js-shell the default for non-js-standalone builds. r=chmanchester 2016-03-10 13:54:02 +09:00
mozconfig.common.override
mozconfig.rust Bug 1243037 - part 3 - move "unix" mozconfig.rust up a level; r=mshal 2016-01-27 08:19:34 -05:00
mozconfig.vs-common
mozconfig.win-common
qemu-wrap
sccache.mk
subconfigure.py Bug 1257468 - Add --enable-project=js when calling configure for js/src from subconfigure.py. r=gps 2016-03-22 11:09:32 +09:00
submit_telemetry_data.py Bug 1250656 - Don't block mach command completion when submitting build telemetry data r=gps 2016-02-24 15:11:58 -08:00
telemetry-schema.json Bug 1244160 - Create json-schema for build telemetry data r=gps 2016-02-02 09:32:49 -05:00
templates.mozbuild Bug 1249167 - Fix dependencies involving stdc++compat and clang-plugin. r=mshal 2016-02-19 07:00:03 +09:00
test_templates.mozbuild Bug 1227248 - Part 3: Make GeneratedTest{Certificate,Key} no-op when --disable-compile-environment. r=gps 2015-12-14 11:55:27 -08:00
update-settings.ini
upload.py Bug 1243750 - Install all SDKs into sdk/; r=glandium 2016-01-29 14:52:52 -05:00
variables.py Bug 1247162 - Generate a header defining MOZ_SOURCE_*. r=mshal 2016-02-12 07:16:14 +09:00
virtualenv_packages.txt Bug 1246407 - Rename parent directories for Marionette client and test harness; r=automatedtester 2016-02-06 17:34:10 +00:00
windows_toolchain.py Bug 1253707 - Script to generate visual studio toolchain archive; r=ted 2016-03-11 15:00:02 -08:00