Index: ui/views/win/hwnd_message_handler.cc |
diff --git a/ui/views/win/hwnd_message_handler.cc b/ui/views/win/hwnd_message_handler.cc |
index 49ccb977a5e906e229dace0237cf90072539ed8a..f35b155db25513a71dfb8c5e8835bf652f049fe0 100644 |
--- a/ui/views/win/hwnd_message_handler.cc |
+++ b/ui/views/win/hwnd_message_handler.cc |
@@ -147,11 +147,10 @@ LRESULT CALLBACK MoveLoopMouseWatcher::KeyHook(int n_code, |
if (n_code == HC_ACTION && w_param == VK_ESCAPE) { |
if (base::win::GetVersion() >= base::win::VERSION_VISTA) { |
int value = TRUE; |
- HRESULT result = DwmSetWindowAttribute( |
- instance_->host_->hwnd(), |
- DWMWA_TRANSITIONS_FORCEDISABLED, |
- &value, |
- sizeof(value)); |
+ DwmSetWindowAttribute(instance_->host_->hwnd(), |
+ DWMWA_TRANSITIONS_FORCEDISABLED, |
+ &value, |
+ sizeof(value)); |
} |
if (instance_->hide_on_escape_) |
instance_->host_->Hide(); |
@@ -1134,7 +1133,7 @@ void HWNDMessageHandler::ResetWindowRegion(bool force, bool redraw) { |
// Changing the window region is going to force a paint. Only change the |
// window region if the region really differs. |
base::win::ScopedRegion current_rgn(CreateRectRgn(0, 0, 0, 0)); |
- int current_rgn_result = GetWindowRgn(hwnd(), current_rgn); |
+ GetWindowRgn(hwnd(), current_rgn); |
RECT window_rect; |
GetWindowRect(hwnd(), &window_rect); |