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

Issue 2365403002: Quiet a -Wcomma warning. (Closed)

Created:
4 years, 2 months ago by mtklein_C
Modified:
4 years, 2 months ago
Reviewers:
bsalomon
CC:
reviews_skia.org
Target Ref:
refs/heads/master
Project:
skia
Visibility:
Public.

Description

Quiet a -Wcomma warning. Clang's got a warning -Wcomma that warns about possible unintentional uses of the comma operator, usually where a semicolon looks itended. I don't think there's a bug here, but a semicolon does work just as well and reads a bit more conventionally. Though, I'm not actually sure how this parses, as fp = ...; glslFP = ...; or fp = (..., glsl = ...). The second would most definitely be a bug. BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2365403002 NOTREECHECKS=true Committed: https://skia.googlesource.com/skia/+/85552e4f9d65c8e751d106fae173374346863cdf

Patch Set 1 #

Patch Set 2 : Fix the other one too. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+4 lines, -2 lines) Patch
M src/gpu/gl/GrGLProgram.cpp View 1 chunk +2 lines, -1 line 0 comments Download
M src/gpu/vk/GrVkPipelineState.cpp View 1 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 19 (10 generated)
mtklein_C
4 years, 2 months ago (2016-09-26 14:28:28 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2365403002/1
4 years, 2 months ago (2016-09-26 14:28:40 UTC) #7
commit-bot: I haz the power
Note for Reviewers: The CQ is waiting for an approval. If you believe that the ...
4 years, 2 months ago (2016-09-26 14:28:41 UTC) #8
bsalomon
There is another instance of this in GrVkPipelineState.cpp (only compiled if skia_vulkan=1). The latter parsing ...
4 years, 2 months ago (2016-09-26 14:39:41 UTC) #9
bsalomon
lgtm
4 years, 2 months ago (2016-09-26 14:44:04 UTC) #10
mtklein
On 2016/09/26 14:39:41, bsalomon wrote: > There is another instance of this in GrVkPipelineState.cpp (only ...
4 years, 2 months ago (2016-09-26 14:44:33 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2365403002/20001
4 years, 2 months ago (2016-09-26 14:44:50 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2365403002/20001
4 years, 2 months ago (2016-09-26 15:38:30 UTC) #17
commit-bot: I haz the power
4 years, 2 months ago (2016-09-26 15:39:46 UTC) #19
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://skia.googlesource.com/skia/+/85552e4f9d65c8e751d106fae173374346863cdf

Powered by Google App Engine
This is Rietveld 408576698