Author: Olivier Tilloy Description: Do not use warning flags that require a newer Clang Index: dev/build/config/compiler/BUILD.gn =================================================================== --- build/config/compiler/BUILD.gn +++ build/config/compiler/BUILD.gn @@ -708,14 +708,6 @@ ldflags += [ "-Wl,--no-rosegment" ] } - # This flag enforces that member pointer base types are complete. It helps - # prevent us from running into problems in the Microsoft C++ ABI (see - # https://crbug.com/847724). - if (is_clang && !is_nacl && target_os != "chromeos" && !use_xcode_clang && - (is_win || use_custom_libcxx)) { - cflags += [ "-fcomplete-member-pointers" ] - } - # Pass the same C/C++ flags to the objective C/C++ compiler. cflags_objc += cflags_c cflags_objcc += cflags_cc @@ -1516,26 +1508,6 @@ if (current_toolchain == host_toolchain || !use_xcode_clang) { # Flags NaCl (Clang 3.7) and Xcode 9.2 (Clang clang-900.0.39.2) do not # recognize. - cflags += [ - # Ignore warnings about MSVC optimization pragmas. - # TODO(thakis): Only for no_chromium_code? http://crbug.com/912662 - "-Wno-ignored-pragma-optimize", - - # TODO(https://crbug.com/989932): Evaluate and possibly enable. - "-Wno-implicit-int-float-conversion", - - # TODO(https://crbug.com/999886): Clean up, enable. - "-Wno-final-dtor-non-final-class", - - # TODO(https://crbug.com/1016947) Clean up, enable. - "-Wno-bitwise-conditional-parentheses", - - # TODO(https://crbug.com/1016945) Clean up, enable. - "-Wno-builtin-assume-aligned-alignment", - - # TODO(https://crbug.com/1028110): Evaluate and possible enable. - "-Wno-deprecated-copy", - ] if (is_fuchsia) { cflags += [