From ee0e6ae64bf5c1d8bc2c83b82adbbf8e40d0e191 Mon Sep 17 00:00:00 2001 From: Chris Peterson Date: Tue, 8 Aug 2017 23:12:41 -0700 Subject: [PATCH] Bug 1389851 - build: Enable clang's -Wunreachable-code-return warnings. r=glandium MozReview-Commit-ID: 8Zl0mbzcFBm --HG-- extra : rebase_source : 36c92b50fac9e1f7991d977e1c878b4945e97528 --- build/moz.configure/warnings.configure | 1 + 1 file changed, 1 insertion(+) diff --git a/build/moz.configure/warnings.configure b/build/moz.configure/warnings.configure index 34e8c84f3f54..f06fce8de942 100644 --- a/build/moz.configure/warnings.configure +++ b/build/moz.configure/warnings.configure @@ -42,6 +42,7 @@ add_gcc_warning('-Wtype-limits') # catches some dead code add_gcc_warning('-Wunreachable-code') +check_and_add_gcc_warning('-Wunreachable-code-return') # catches treating string literals as non-const add_gcc_warning('-Wwrite-strings', cxx_compiler)