diff options
author | Muxi Yan <mxyan@google.com> | 2016-08-01 14:57:20 -0700 |
---|---|---|
committer | Muxi Yan <mxyan@google.com> | 2016-08-01 14:57:20 -0700 |
commit | c44f6199841b1fd63d127dcd052312ee6c1899a0 (patch) | |
tree | eee86142d736430fa36ffc0f2a2bb551391d02f7 | |
parent | d915c6e28ae102739ba7c7f4032ff1a6a434ae0e (diff) |
Bug fix on error suppression and comment
-rw-r--r-- | src/objective-c/tests/Podfile | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/objective-c/tests/Podfile b/src/objective-c/tests/Podfile index 36f25e1bf5..17478fab12 100644 --- a/src/objective-c/tests/Podfile +++ b/src/objective-c/tests/Podfile @@ -82,7 +82,11 @@ post_install do |installer| target.build_configurations.each do |config| config.build_settings['GCC_TREAT_WARNINGS_AS_ERRORS'] = 'YES' end - if target.name.start_with?('gRPC-Core') + + # CocoaPods creates duplicated library targets of gRPC-Core when the test targets include + # non-default subspecs of gRPC-Core. All of these library targets start with prefix 'gRPC-Core.' + # and require the same error suppresion. + if target.name == 'gRPC-Core' or target.name.start_with?('gRPC-Core.') target.build_configurations.each do |config| # TODO(zyc): Remove this setting after the issue is resolved # GPR_UNREACHABLE_CODE causes "Control may reach end of non-void |