remove module-wide warning suppression.

The warnings in question are benign and should be supressed locally so
we can keep the analysis for the rest of the files.

BUG=webrtc:5748

Review-Url: https://codereview.webrtc.org/2790883002
Cr-Commit-Position: refs/heads/master@{#17485}
This commit is contained in:
kthelgason 2017-03-31 04:50:27 -07:00 committed by Commit bot
parent e6a8009417
commit ee8b861190
2 changed files with 5 additions and 8 deletions

View File

@ -19,14 +19,6 @@ config("audio_device_config") {
"include",
"dummy", # Contains dummy audio device implementations.
]
if (is_ios) {
# GN orders flags on a target before flags from configs. In order to be able
# suppress the -Wthread-safety-analysis warning, it has come from a config
# and can't be on the target directly.
# TODO(tkchin): Remove after fixing
# https://bugs.chromium.org/p/webrtc/issues/detail?id=5748
cflags = [ "-Wno-thread-safety-analysis" ]
}
}
config("audio_device_warnings_config") {

View File

@ -193,6 +193,9 @@ NSInteger const kRTCAudioSessionErrorConfiguration = -2;
}
}
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wthread-safety-analysis"
- (void)lockForConfiguration {
_crit.Enter();
rtc::AtomicOps::Increment(&_lockRecursionCount);
@ -210,6 +213,8 @@ NSInteger const kRTCAudioSessionErrorConfiguration = -2;
}
}
#pragma clang diagnostic pop
#pragma mark - AVAudioSession proxy methods
- (NSString *)category {