diff options
author | Benjamin Barenblat <benjamin@barenblat.name> | 2018-07-11 13:20:01 -0400 |
---|---|---|
committer | Thomas Van Lenten <thomasvl@google.com> | 2018-07-11 13:20:01 -0400 |
commit | 048f5c26a783f5f92061aec3aab19986e5c8d435 (patch) | |
tree | 74fe45ea33ccb4ae295f5359d875ac345db8d837 /BUILD | |
parent | 237938ac6ae07d732e1147073ab3569379c313a5 (diff) | |
download | protobuf-048f5c26a783f5f92061aec3aab19986e5c8d435.tar.gz |
objectivec: Quash -Wself-assign and -Wvla (#4897)
* objectivec: Quash -Wself-assign
* objectivec: Set -Wno-vla when building
Objective-C protobuf uses VLAs for performance reasons. Ensure Clang
doesn’t complain about them.
Diffstat (limited to 'BUILD')
-rw-r--r-- | BUILD | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -934,6 +934,9 @@ OBJC_SRCS = [ objc_library( name = "objectivec", hdrs = OBJC_HDRS + OBJC_PRIVATE_HDRS, + copts = [ + "-Wno-vla", + ], includes = [ "objectivec", ], |