diff options
author | 2016-06-20 14:01:07 -0700 | |
---|---|---|
committer | 2016-06-20 14:01:07 -0700 | |
commit | 36a58a7928e6a10b44b6cffdc118337ef7e0b8c1 (patch) | |
tree | 607e11cd9b7da405489fb748365e334a11662a80 /src/objective-c/tests/Podfile | |
parent | dbe2b9e976d50ce7971df32dc9a3122525dad3ce (diff) |
Enable treating warnings as errors for target gRPC
Diffstat (limited to 'src/objective-c/tests/Podfile')
-rw-r--r-- | src/objective-c/tests/Podfile | 21 |
1 files changed, 18 insertions, 3 deletions
diff --git a/src/objective-c/tests/Podfile b/src/objective-c/tests/Podfile index 508641d681..53edf8c890 100644 --- a/src/objective-c/tests/Podfile +++ b/src/objective-c/tests/Podfile @@ -1,9 +1,9 @@ source 'https://github.com/CocoaPods/Specs.git' platform :ios, '8.0' -pod 'Protobuf', :path => "../../../third_party/protobuf" -pod 'BoringSSL', :podspec => ".." -pod 'CronetFramework', :podspec => ".." +pod 'Protobuf', :path => "../../../third_party/protobuf", :inhibit_warnings => true +pod 'BoringSSL', :podspec => "..", :inhibit_warnings => true +pod 'CronetFramework', :podspec => "..", :inhibit_warnings => true pod 'gRPC', :path => "../../.." pod 'RemoteTest', :path => "RemoteTestClient" @@ -30,3 +30,18 @@ end target 'InteropTestsLocalCleartext' do end + +post_install do |installer| + installer.pods_project.targets.each do |target| + target.build_configurations.each do |config| + config.build_settings['GCC_TREAT_WARNINGS_AS_ERRORS'] = 'YES' + end + if target.name == 'gRPC' + target.build_configurations.each do |config| + # GPR_UNREACHABLE_CODE causes "Control may reach end of non-void + # function" warning + config.build_settings['GCC_WARN_ABOUT_RETURN_TYPE'] = 'NO' + end + end + end +end |