Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(641)

Issue 1610103002: Fix build error with gcc 4.8.2 about WARN_UNUSED_RESULT (Closed)

Created:
4 years, 11 months ago by Julien Isorce Samsung
Modified:
4 years, 10 months ago
Reviewers:
cpu_(ooo_6.6-7.5), Nico
CC:
chromium-reviews, extensions-reviews_chromium.org, skanuj+watch_chromium.org, melevin+watch_chromium.org, dhollowa+watch_chromium.org, dougw+watch_chromium.org, donnd+watch_chromium.org, jfweitz+watch_chromium.org, David Black, samarth+watch_chromium.org, chromium-apps-reviews_chromium.org, kmadhusu+watch_chromium.org, Jered
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix 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 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+6 lines, -6 lines) Patch
M chrome/browser/component_updater/chrome_component_updater_configurator.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/dom_distiller/dom_distiller_service_factory.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/profiles/profile_impl_io_data.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/search/suggestions/suggestions_service_factory.cc View 1 chunk +1 line, -1 line 0 comments Download
M components/visitedlink/browser/visitedlink_master.cc View 1 chunk +1 line, -1 line 0 comments Download
M extensions/browser/updater/update_client_config.cc View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 14 (7 generated)
cpu_(ooo_6.6-7.5)
Nico, do we usually accept these changes aimed at older GCCs?
4 years, 11 months ago (2016-01-21 19:15:28 UTC) #4
Nico
"it depends". If it's a useful warning, yes. In this case, it looks like a ...
4 years, 11 months ago (2016-01-21 19:18:41 UTC) #5
Nico
lgtm, calling static methods though an object is kind of weird imho, so changing this ...
4 years, 10 months ago (2016-01-25 23:23:36 UTC) #6
cpu_(ooo_6.6-7.5)
lgtm
4 years, 10 months ago (2016-01-25 23:28:06 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1610103002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1610103002/1
4 years, 10 months ago (2016-01-26 07:43:46 UTC) #10
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 10 months ago (2016-01-26 09:09:00 UTC) #12
commit-bot: I haz the power
4 years, 10 months ago (2016-01-26 09:10:22 UTC) #14
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/23df969355caed40d16791d22ad35929a6553f9b
Cr-Commit-Position: refs/heads/master@{#371479}

Powered by Google App Engine
This is Rietveld 408576698