From 582d3c5dd75c52e3e147d4aedd8542701093921e Mon Sep 17 00:00:00 2001 From: Benjamin Barenblat Date: Wed, 11 Jul 2018 12:16:15 -0400 Subject: objectivec: Set -Wno-vla when building MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Objective-C protobuf uses VLAs for performance reasons. Ensure Clang doesn’t complain about them. --- BUILD | 3 +++ 1 file changed, 3 insertions(+) diff --git a/BUILD b/BUILD index 7f7ec759..df9867b6 100644 --- a/BUILD +++ b/BUILD @@ -934,6 +934,9 @@ OBJC_SRCS = [ objc_library( name = "objectivec", hdrs = OBJC_HDRS + OBJC_PRIVATE_HDRS, + copts = [ + "-Wno-vla", + ], includes = [ "objectivec", ], -- cgit v1.2.3