--- third_party/angle/BUILD.gn.orig 2021-01-07 00:39:26 UTC +++ third_party/angle/BUILD.gn @@ -141,10 +141,17 @@ config("extra_warnings") { ] } if (is_clang) { + if (!is_bsd) { + cflags += [ + "-Wdeprecated-copy", + "-Wsuggest-destructor-override", + "-Wsuggest-override", + ] + } + cflags += [ "-Wbad-function-cast", "-Wconditional-uninitialized", - "-Wdeprecated-copy", "-Wextra-semi-stmt", "-Wfloat-conversion", "-Winconsistent-missing-destructor-override", @@ -154,8 +161,6 @@ config("extra_warnings") { "-Wredundant-parens", "-Wreturn-std-move-in-c++11", "-Wshadow-field", - "-Wsuggest-destructor-override", - "-Wsuggest-override", "-Wtautological-type-limit-compare", "-Wundefined-reinterpret-cast", "-Wunneeded-internal-declaration", @@ -396,6 +401,7 @@ angle_static_library("angle_gpu_info_util") { "X11", "Xi", "Xext", + "GL", ] } }