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

Issue 1906333002: color_picker.cc fix float-to-bool conversion warning (Closed)

Created:
4 years, 8 months ago by hans
Modified:
4 years, 8 months ago
Reviewers:
Nico, dgozman
CC:
chromium-reviews, darin-cc_chromium.org, jam, pfeldman, devtools-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

color_picker.cc fix float-to-bool conversion warning New versions of Clang were warning (which we treat as an error) on this code: ../../content/browser/devtools/protocol/color_picker.cc:184:7: error: implicit conversion from 'const float' to 'bool' changes value from 0 to false [-Werror,-Wfloat-bool-constant-conversion] if (kHotspotRadius) { ~~ ^~~~~~~~~~~~~~ BUG=605818 TBR=dgozman Committed: https://crrev.com/24fec3b129239e5812f527033baeb1c7b27e8a48 Cr-Commit-Position: refs/heads/master@{#389016}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1 line, -1 line) Patch
M content/browser/devtools/protocol/color_picker.cc View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 12 (5 generated)
hans
Please take a look.
4 years, 8 months ago (2016-04-22 02:13:02 UTC) #2
Nico
lgtm
4 years, 8 months ago (2016-04-22 02:15:58 UTC) #3
hans
dgozman: I'm TBR'ing this to fix the builds with tip-of-tree Clang. If you have any ...
4 years, 8 months ago (2016-04-22 02:19:07 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1906333002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1906333002/1
4 years, 8 months ago (2016-04-22 02:19:34 UTC) #7
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 8 months ago (2016-04-22 04:02:50 UTC) #9
dgozman
On 2016/04/22 02:19:07, hans wrote: > dgozman: I'm TBR'ing this to fix the builds with ...
4 years, 8 months ago (2016-04-22 07:20:12 UTC) #10
commit-bot: I haz the power
4 years, 8 months ago (2016-04-22 19:43:55 UTC) #12
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/24fec3b129239e5812f527033baeb1c7b27e8a48
Cr-Commit-Position: refs/heads/master@{#389016}

Powered by Google App Engine
This is Rietveld 408576698