From cc00a549afa060943a599a5a1b2487bc5cb07457 Mon Sep 17 00:00:00 2001 From: Cheng Zhao Date: Sat, 31 Mar 2018 19:17:40 +0900 Subject: [PATCH] Don't use -Wunguarded-availability --- build/config/compiler/BUILD.gn | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/build/config/compiler/BUILD.gn b/build/config/compiler/BUILD.gn index d288e17..5167841 100644 --- a/build/config/compiler/BUILD.gn +++ b/build/config/compiler/BUILD.gn @@ -1250,7 +1250,8 @@ config("default_warnings") { if ((is_mac || is_ios) && !is_nacl) { # When compiling Objective-C, warns if a method is used whose # availability is newer than the deployment target. - cflags += [ "-Wunguarded-availability" ] + # PATCH(build-gn): This is not available on old clang. + # cflags += [ "-Wunguarded-availability" ] } if (is_ios) {