DescriptionFix build error with gcc 4.8.2 about WARN_UNUSED_RESULT
For static methods it does not seem to work properly with older gcc.
Indeed the compiler consider the result as not used in this example:
sequence_token_ = BrowserThread::GetBlockingPool()->GetSequenceToken()
"error: ignoring return value of 'static base::SequencedWorkerPool*
content::BrowserThread::GetBlockingPool()', declared with attribute
warn_unused_result [-Werror=unused-result]"
The solution is just to call GetSequenceToken() directly as:
base::SequencedWorkerPool::GetSequenceToken() as it is static.
BUG=579461
R=cpu@chromium.org, nico@chromium.org
TEST= GYP_DEFINES="clang=0 use_sysroot=0"
Committed: https://crrev.com/23df969355caed40d16791d22ad35929a6553f9b
Cr-Commit-Position: refs/heads/master@{#371479}
Patch Set 1 #
Messages
Total messages: 14 (7 generated)
|