aboutsummaryrefslogtreecommitdiff
path: root/webrtc/modules
diff options
context:
space:
mode:
authorthakis <thakis@chromium.org>2015-12-10 10:50:28 -0800
committerCommit bot <commit-bot@chromium.org>2015-12-10 18:50:36 +0000
commit61a90f94b60979a1f5569ea71739e233455e296f (patch)
treef433f41a91df717ff7bcdf0302c12ee1c78bf7e6 /webrtc/modules
parent5c1def8892390a336d1eecd9b61adacece858898 (diff)
downloadwebrtc-61a90f94b60979a1f5569ea71739e233455e296f.tar.gz
clang/win: Fix -Wextra warnings in webrtc.
Fixes one sign mismatch warning, and one "const has no effect and is ignored" warning. BUG=chromium:567877 Review URL: https://codereview.webrtc.org/1510233002 Cr-Commit-Position: refs/heads/master@{#10976}
Diffstat (limited to 'webrtc/modules')
-rw-r--r--webrtc/modules/desktop_capture/win/screen_capturer_win_magnifier.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/webrtc/modules/desktop_capture/win/screen_capturer_win_magnifier.cc b/webrtc/modules/desktop_capture/win/screen_capturer_win_magnifier.cc
index db40478023..b5eb1c03e7 100644
--- a/webrtc/modules/desktop_capture/win/screen_capturer_win_magnifier.cc
+++ b/webrtc/modules/desktop_capture/win/screen_capturer_win_magnifier.cc
@@ -236,7 +236,7 @@ BOOL ScreenCapturerWinMagnifier::OnMagImageScalingCallback(
RECT unclipped,
RECT clipped,
HRGN dirty) {
- assert(tls_index_.Value() != TLS_OUT_OF_INDEXES);
+ assert(tls_index_.Value() != static_cast<int32_t>(TLS_OUT_OF_INDEXES));
ScreenCapturerWinMagnifier* owner =
reinterpret_cast<ScreenCapturerWinMagnifier*>(
@@ -369,7 +369,7 @@ bool ScreenCapturerWinMagnifier::InitializeMagnifier() {
}
}
- if (tls_index_.Value() == TLS_OUT_OF_INDEXES) {
+ if (tls_index_.Value() == static_cast<int32_t>(TLS_OUT_OF_INDEXES)) {
// More than one threads may get here at the same time, but only one will
// write to tls_index_ using CompareExchange.
DWORD new_tls_index = TlsAlloc();
@@ -377,7 +377,7 @@ bool ScreenCapturerWinMagnifier::InitializeMagnifier() {
TlsFree(new_tls_index);
}
- assert(tls_index_.Value() != TLS_OUT_OF_INDEXES);
+ assert(tls_index_.Value() != static_cast<int32_t>(TLS_OUT_OF_INDEXES));
TlsSetValue(tls_index_.Value(), this);
magnifier_initialized_ = true;