diff options
author | dcheng <dcheng@chromium.org> | 2015-10-09 18:17:26 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-10-10 01:18:27 +0000 |
commit | 7764fe9ea52233096b7916614eb7c60b26bbca05 (patch) | |
tree | 0f7d3570c76e7387f1f329045c55fe70cce69971 /chrome/service | |
parent | fbe0354f403ff793ccacd4d1e162583c11bd58db (diff) | |
download | chromium_src-7764fe9ea52233096b7916614eb7c60b26bbca05.zip chromium_src-7764fe9ea52233096b7916614eb7c60b26bbca05.tar.gz chromium_src-7764fe9ea52233096b7916614eb7c60b26bbca05.tar.bz2 |
Enforce WARN_UNUSED_RESULT attribute on Windows
BUG=none
R=cpu,danakj,dpranke,hans,kelvinp,rickyz,sky,sorin,thestig,tuttle,yukawa
TBR=vitalybuka
Review URL: https://codereview.chromium.org/1390223002
Cr-Commit-Position: refs/heads/master@{#353450}
Diffstat (limited to 'chrome/service')
-rw-r--r-- | chrome/service/cloud_print/print_system_win.cc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/chrome/service/cloud_print/print_system_win.cc b/chrome/service/cloud_print/print_system_win.cc index 26c56263..02016cf 100644 --- a/chrome/service/cloud_print/print_system_win.cc +++ b/chrome/service/cloud_print/print_system_win.cc @@ -7,6 +7,7 @@ #include "base/command_line.h" #include "base/files/file_util.h" #include "base/json/json_writer.h" +#include "base/macros.h" #include "base/memory/scoped_ptr.h" #include "base/strings/utf_string_conversions.h" #include "base/thread_task_runner_handle.h" @@ -435,7 +436,7 @@ class JobSpoolerWin : public PrintSystem::JobSpooler { pdf_path, printing::PdfRenderSettings(render_area, render_dpi, false))) { // The object will self-destruct when the child process dies. - utility_host.release(); + ignore_result(utility_host.release()); } else { client_task_runner->PostTask( FROM_HERE, base::Bind(&Core::PrintJobDone, this, false)); @@ -575,7 +576,7 @@ class PrinterCapsHandler : public ServiceUtilityProcessHost::Client { new ServiceUtilityProcessHost(this, client_task_runner.get())); if (utility_host->StartGetPrinterCapsAndDefaults(printer_name_)) { // The object will self-destruct when the child process dies. - utility_host.release(); + ignore_result(utility_host.release()); } else { client_task_runner->PostTask( FROM_HERE, base::Bind(&PrinterCapsHandler::OnChildDied, this)); @@ -589,7 +590,7 @@ class PrinterCapsHandler : public ServiceUtilityProcessHost::Client { new ServiceUtilityProcessHost(this, client_task_runner.get())); if (utility_host->StartGetPrinterSemanticCapsAndDefaults(printer_name_)) { // The object will self-destruct when the child process dies. - utility_host.release(); + ignore_result(utility_host.release()); } else { client_task_runner->PostTask( FROM_HERE, base::Bind(&PrinterCapsHandler::OnChildDied, this)); |