Removing find_bad_constructs from system_wrappers.

Bug: webrtc:9251
Change-Id: I4c5f2f5acc763f69cca5b684003bd4a387d29c88
Reviewed-on: https://webrtc-review.googlesource.com/88761
Reviewed-by: Henrik Andreassson <henrika@webrtc.org>
Commit-Queue: Mirko Bonadei <mbonadei@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#23985}
This commit is contained in:
Mirko Bonadei
2018-07-16 15:44:28 +02:00
committed by Commit Bot
parent ca621e7a23
commit c14d9bbb27
6 changed files with 9 additions and 19 deletions

View File

@ -91,11 +91,6 @@ rtc_static_library("system_wrappers") {
deps += [ "../rtc_base:rtc_base" ]
}
if (is_win && is_clang) {
# Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
}
deps += [
"../rtc_base:rtc_base_approved",
"../rtc_base:rtc_numerics",
@ -218,11 +213,6 @@ if (rtc_include_tests) {
sources += [ "source/event_timer_posix_unittest.cc" ]
}
if (!build_with_chromium && is_clang) {
# Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
}
deps = [
":metrics_api",
":metrics_default",

View File

@ -90,7 +90,7 @@ class WindowsRealTimeClock : public RealTimeClock {
num_timer_wraps_(0),
ref_point_(GetSystemReferencePoint()) {}
virtual ~WindowsRealTimeClock() {}
~WindowsRealTimeClock() override {}
protected:
struct ReferencePoint {

View File

@ -35,7 +35,7 @@ class EventTimerPosixTest : public testing::Test, public EventTimerPosix {
main_event_(false, true),
process_thread_id_(0),
process_thread_(nullptr) {}
virtual ~EventTimerPosixTest() {}
~EventTimerPosixTest() override {}
rtc::PlatformThread* CreateThread() override {
EXPECT_TRUE(process_thread_ == nullptr);

View File

@ -22,13 +22,13 @@ namespace webrtc {
class EventTimerWin : public EventTimerWrapper {
public:
EventTimerWin();
virtual ~EventTimerWin();
~EventTimerWin() override;
virtual EventTypeWrapper Wait(unsigned long max_time);
virtual bool Set();
EventTypeWrapper Wait(unsigned long max_time) override;
bool Set() override;
virtual bool StartTimer(bool periodic, unsigned long time);
virtual bool StopTimer();
bool StartTimer(bool periodic, unsigned long time) override;
bool StopTimer() override;
private:
HANDLE event_;

View File

@ -54,7 +54,7 @@ class MetricsDefaultTest : public ::testing::Test {
MetricsDefaultTest() {}
protected:
virtual void SetUp() { metrics::Reset(); }
void SetUp() override { metrics::Reset(); }
};
TEST_F(MetricsDefaultTest, Reset) {

View File

@ -29,7 +29,7 @@ class MetricsTest : public ::testing::Test {
MetricsTest() {}
protected:
virtual void SetUp() { metrics::Reset(); }
void SetUp() override { metrics::Reset(); }
};
TEST_F(MetricsTest, InitiallyNoSamples) {