Skip to content

Commit

Permalink
Enabling clang::find_bad_constructs for desktop_capture.
Browse files Browse the repository at this point in the history
This CL removes //build/config/clang:find_bad_constructs from the
suppressed_configs list, which means that clang:find_bad_constructs
is now enabled on these translation units.

Bug: webrtc:9251, webrtc:163
Change-Id: I7ad7b03ae1b28fbf5712e671f361928c5e6d7a18
Reviewed-on: https://webrtc-review.googlesource.com/89384
Reviewed-by: Sergey Ulanov <[email protected]>
Reviewed-by: Sergey Ulanov <[email protected]>
Commit-Queue: Sergey Ulanov <[email protected]>
Cr-Commit-Position: refs/heads/master@{#24047}
  • Loading branch information
MirkoBonadei authored and Commit Bot committed Jul 19, 2018
1 parent e12e68c commit a6bec58
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
4 changes: 0 additions & 4 deletions modules/desktop_capture/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -113,10 +113,6 @@ if (rtc_include_tests) {
]
deps += [ ":desktop_capture_mock" ]
}
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" ]
}
}

rtc_source_set("screen_drawer") {
Expand Down
2 changes: 1 addition & 1 deletion modules/desktop_capture/screen_capturer_unittest.cc
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ class FakeSharedMemory : public SharedMemory {
public:
FakeSharedMemory(char* buffer, size_t size)
: SharedMemory(buffer, size, 0, kTestSharedMemoryId), buffer_(buffer) {}
virtual ~FakeSharedMemory() { delete[] buffer_; }
~FakeSharedMemory() override { delete[] buffer_; }

private:
char* buffer_;
Expand Down

0 comments on commit a6bec58

Please sign in to comment.