diff options
author | evan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-11-20 19:56:30 +0000 |
---|---|---|
committer | evan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-11-20 19:56:30 +0000 |
commit | f76b49d07507a14b5ef9e9f85b8bd5644f50199a (patch) | |
tree | f3461719e9871f6a2847401644a7d12aabe4142b /base/process_util_unittest.cc | |
parent | 8e25c235bfd9c60eac60420c4d52fa4e0cc995b8 (diff) | |
download | chromium_src-f76b49d07507a14b5ef9e9f85b8bd5644f50199a.zip chromium_src-f76b49d07507a14b5ef9e9f85b8bd5644f50199a.tar.gz chromium_src-f76b49d07507a14b5ef9e9f85b8bd5644f50199a.tar.bz2 |
linux: fix a warning in the process_util unittest
Review URL: http://codereview.chromium.org/422003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@32648 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/process_util_unittest.cc')
-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" { |