Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3104)

Unified Diff: chrome/browser/chromeos/login/screen_locker_views.cc

Issue 8537032: Prevent unused-variable warnings in the CrOS build with gcc 4.6. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 9 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/chromeos/login/image_decoder.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/login/screen_locker_views.cc
diff --git a/chrome/browser/chromeos/login/screen_locker_views.cc b/chrome/browser/chromeos/login/screen_locker_views.cc
index ed5657d69c1bfea90046f6be1100b129ba3c5720..77272a36b4ba82358f41448372b54f1934e28ace 100644
--- a/chrome/browser/chromeos/login/screen_locker_views.cc
+++ b/chrome/browser/chromeos/login/screen_locker_views.cc
@@ -796,8 +796,7 @@ void ScreenLockerViews::ShowCaptchaAndErrorMessage(const GURL& captcha_url,
captcha_view_->set_delegate(this);
}
// CaptchaView ownership is passed to grab_container_.
- views::View* view = secondary_view_.release();
- view = NULL;
+ ignore_result(secondary_view_.release());
screen_lock_view_->SetVisible(false);
grab_container_->SetScreenLockView(captcha_view_);
background_container_->SetScreenLockView(captcha_view_);
@@ -842,8 +841,7 @@ void ScreenLockerViews::OnCaptchaEntered(const std::string& captcha) {
// ScreenLockView ownership is passed to grab_container_.
// Need to save return value here so that compile
// doesn't fail with "unused result" warning.
- views::View* view = secondary_view_.release();
- view = NULL;
+ ignore_result(secondary_view_.release());
captcha_view_->SetVisible(false);
grab_container_->SetScreenLockView(screen_lock_view_);
background_container_->SetScreenLockView(screen_lock_view_);
« no previous file with comments | « chrome/browser/chromeos/login/image_decoder.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698