Index: third_party/ocmock/BUILD.gn |
diff --git a/third_party/ocmock/BUILD.gn b/third_party/ocmock/BUILD.gn |
index de51636c9ef9615eacf849343d13a5b7941a928f..7d9f70247de63386a17a1ce0d570ea0bccab32ed 100644 |
--- a/third_party/ocmock/BUILD.gn |
+++ b/third_party/ocmock/BUILD.gn |
@@ -8,6 +8,11 @@ config("ocmock_config") { |
include_dirs = [ "//third_party/ocmock" ] |
} |
+config("ocmock_warnings") { |
+ # NSInvocation+OCMAdditions.m has some `- (void) foo; {...` |
+ cflags = [ "-Wno-semicolon-before-method-body" ] |
+} |
+ |
source_set("ocmock") { |
testonly = true |
@@ -70,4 +75,5 @@ source_set("ocmock") { |
"//testing/gtest", |
] |
public_configs = [ ":ocmock_config" ] |
+ configs += [ ":ocmock_warnings" ] |
} |