diff options
author | vandebo@google.com <vandebo@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-11-23 20:42:57 +0000 |
---|---|---|
committer | vandebo@google.com <vandebo@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-11-23 20:42:57 +0000 |
commit | caeb7bd711295cdfd4bc3e87aab09911a000b3dc (patch) | |
tree | 595ce62b9c9d64ccfcfdccbd54e7b8906e220ecc /base | |
parent | 314fdee1903532fd913fb98b89e7310355ec9bf4 (diff) | |
download | chromium_src-caeb7bd711295cdfd4bc3e87aab09911a000b3dc.zip chromium_src-caeb7bd711295cdfd4bc3e87aab09911a000b3dc.tar.gz chromium_src-caeb7bd711295cdfd4bc3e87aab09911a000b3dc.tar.bz2 |
Merge 32648 - linux: fix a warning in the process_util unittest
Review URL: http://codereview.chromium.org/422003
git-svn-id: svn://svn.chromium.org/chrome/branches/249/src@32848 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base')
-rw-r--r-- | base/process_util_unittest.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/base/process_util_unittest.cc b/base/process_util_unittest.cc index 4169dc6..a247560 100644 --- a/base/process_util_unittest.cc +++ b/base/process_util_unittest.cc @@ -415,7 +415,10 @@ TEST_F(OutOfMemoryTest, Memalign) { } TEST_F(OutOfMemoryTest, Posix_memalign) { - ASSERT_DEATH(posix_memalign(&value_, 8, test_size_), ""); + // The (void) is to prevent a gcc warning about unused return values. + // We don't actually care about the return value, since we're + // asserting death. + ASSERT_DEATH((void) posix_memalign(&value_, 8, test_size_), ""); } extern "C" { |