--- third_party/angle/BUILD.gn.orig 2021-01-18 21:31:44 UTC +++ third_party/angle/BUILD.gn @@ -162,10 +162,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", @@ -175,8 +182,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", @@ -425,6 +430,7 @@ angle_static_library("angle_gpu_info_util") { "X11", "Xi", "Xext", + "GL", ] } }