From b37547bc7096ad28a9e9236ba068f50b11716324 Mon Sep 17 00:00:00 2001 From: Tobias Sargeant Date: Fri, 24 Mar 2017 12:51:47 +0000 Subject: [PATCH] add -Wunused-local-typedefs to the set of warning flags This helps catch issues when rolling in Chromium. Change-Id: I2e3f33df4a69b501d8c04799ee0ac03a4bed9ac9 Reviewed-on: https://chromium-review.googlesource.com/459477 Reviewed-by: Mike Frysinger --- configure | 2 +- configure.ac | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/configure b/configure index 8d92159f..200d1dc9 100755 --- a/configure +++ b/configure @@ -7295,7 +7295,7 @@ fi -for flag in -Wmissing-braces -Wnon-virtual-dtor -Woverloaded-virtual -Wreorder -Wsign-compare -Wunused-variable -Wvla ; do +for flag in -Wmissing-braces -Wnon-virtual-dtor -Woverloaded-virtual -Wreorder -Wsign-compare -Wunused-local-typedefs -Wunused-variable -Wvla ; do as_CACHEVAR=`$as_echo "ax_cv_check_cxxflags_${ax_compiler_flags_test}_$flag" | $as_tr_sh` { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts $flag" >&5 $as_echo_n "checking whether C++ compiler accepts $flag... " >&6; } diff --git a/configure.ac b/configure.ac index 8dd855d9..bc72017c 100644 --- a/configure.ac +++ b/configure.ac @@ -92,6 +92,7 @@ AX_APPEND_COMPILE_FLAGS(m4_flatten([ -Woverloaded-virtual -Wreorder -Wsign-compare + -Wunused-local-typedefs -Wunused-variable -Wvla ]), [WARN_CXXFLAGS], [${ax_compiler_flags_test}])