diff --git a/CMakeLists.txt b/CMakeLists.txt index 6becf22d894..c2c6fb2496d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -832,6 +832,7 @@ if(NOT MSVC) append_cxx_flag_if_supported("-Wno-type-limits" CMAKE_CXX_FLAGS) append_cxx_flag_if_supported("-Wno-array-bounds" CMAKE_CXX_FLAGS) append_cxx_flag_if_supported("-Wno-unknown-pragmas" CMAKE_CXX_FLAGS) + append_cxx_flag_if_supported("-Wunused-local-typedefs" CMAKE_CXX_FLAGS) append_cxx_flag_if_supported("-Wno-unused-parameter" CMAKE_CXX_FLAGS) append_cxx_flag_if_supported("-Wno-unused-function" CMAKE_CXX_FLAGS) append_cxx_flag_if_supported("-Wno-unused-result" CMAKE_CXX_FLAGS) @@ -895,6 +896,7 @@ if(NOT MSVC) append_cxx_flag_if_supported("-Wno-constexpr-not-const" CMAKE_CXX_FLAGS) append_cxx_flag_if_supported("-Wno-missing-braces" CMAKE_CXX_FLAGS) append_cxx_flag_if_supported("-Wunused-lambda-capture" CMAKE_CXX_FLAGS) + append_cxx_flag_if_supported("-Wunused-local-typedef" CMAKE_CXX_FLAGS) append_cxx_flag_if_supported("-Qunused-arguments" CMAKE_CXX_FLAGS) if(${USE_COLORIZE_OUTPUT}) endif() diff --git a/defs.bzl b/defs.bzl index 1ccc35f1e83..00cf0fa8f06 100644 --- a/defs.bzl +++ b/defs.bzl @@ -15,7 +15,6 @@ default_compiler_flags = [ "-Wno-unused-function", "-Wno-unused-parameter", "-Wno-error=strict-aliasing", - "-Wno-unused-local-typedefs", "-Wno-shadow-compatible-local", "-Wno-maybe-uninitialized", # aten is built with gcc as part of HHVM "-Wno-unknown-pragmas",