diff options
author | scherkus@chromium.org <scherkus@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-05-06 20:00:56 +0000 |
---|---|---|
committer | scherkus@chromium.org <scherkus@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-05-06 20:00:56 +0000 |
commit | 8741162f0cf0f6227918ba4506c8b0d502bd156e (patch) | |
tree | 4062c497b1714c92a38f7d0892557a5d82ac1c9e /chrome/app/chrome_dll_main.cc | |
parent | f5abf2d19262af8e7a25e7e98eabec9a8bc249d5 (diff) | |
download | chromium_src-8741162f0cf0f6227918ba4506c8b0d502bd156e.zip chromium_src-8741162f0cf0f6227918ba4506c8b0d502bd156e.tar.gz chromium_src-8741162f0cf0f6227918ba4506c8b0d502bd156e.tar.bz2 |
Fix Chrome build break when building inside of x86-generic chroot.
BUG=none
TEST=chromeos-base/chromeos-chrome builds inside of x86-generic chroot.
Review URL: http://codereview.chromium.org/1998007
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@46604 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/app/chrome_dll_main.cc')
-rw-r--r-- | chrome/app/chrome_dll_main.cc | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/chrome/app/chrome_dll_main.cc b/chrome/app/chrome_dll_main.cc index 2e2a209..96a4715 100644 --- a/chrome/app/chrome_dll_main.cc +++ b/chrome/app/chrome_dll_main.cc @@ -398,11 +398,12 @@ DLLEXPORT int __cdecl ChromeMain(HINSTANCE instance, int ChromeMain(int argc, char** argv) { #endif #if defined(OS_CHROMEOS) - // Output our start times. - system("if [ ! -f /tmp/uptime-chrome-main ]; " - "then cat /proc/uptime > /tmp/uptime-chrome-main ; fi"); - system("if [ ! -f /tmp/disk-chrome-main ]; " - "then cat /sys/block/sda/stat > /tmp/disk-chrome-main ; fi"); + // Output our start times. Save the result to appease warn_unused_result. + int result = 0; + result = system("if [ ! -f /tmp/uptime-chrome-main ]; " + "then cat /proc/uptime > /tmp/uptime-chrome-main ; fi"); + result = system("if [ ! -f /tmp/disk-chrome-main ]; " + "then cat /sys/block/sda/stat > /tmp/disk-chrome-main ; fi"); #endif #if defined(OS_MACOSX) // TODO(mark): Some of these things ought to be handled in chrome_exe_main.mm. |