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

Issue 1523163005: clang/win: Fix build after https://codereview.chromium.org/1496093002 (Closed)

Created:
5 years ago by Nico
Modified:
5 years ago
Reviewers:
jschuh
CC:
chromium-reviews, grt+watch_chromium.org, wfh+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

clang/win: Fix build after https://codereview.chromium.org/1496093002 clang was complaining that it wasn't clear if the if (owner = foo) expression was an assignment (in which case one usually writes if ((owner = foo))) or a comparison where == was meant instead of =: ..\..\chrome\installer\mini_installer\mini_installer.cc(575,15) : error: using the result of an assignment as a condition without parentheses [-Werror,-Wparentheses] if (owner = reinterpret_cast<TOKEN_OWNER*>(::LocalAlloc(LPTR, size))) { ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Rather than just add parentheses, declare owner in this if, as it's not really used outside the scope of the if. BUG=82385 TBR=jschuh@chromium.org

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+3 lines, -3 lines) Patch
M chrome/installer/mini_installer/mini_installer.cc View 1 chunk +3 lines, -3 lines 0 comments Download

Messages

Total messages: 8 (3 generated)
Nico
5 years ago (2015-12-16 13:38:47 UTC) #1
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1523163005/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1523163005/1
5 years ago (2015-12-16 13:39:18 UTC) #3
commit-bot: I haz the power
Patchset 1 (id:??) landed as https://crrev.com/415f7da181d489b006cd5ef6c4c8f7098ffeb65c Cr-Commit-Position: refs/heads/master@{#365519}
5 years ago (2015-12-16 13:58:11 UTC) #5
Nico
Committed patchset #1 (id:1) to pending queue manually as 86a447914185488ac9f9512203cacf280c5b065b (presubmit successful).
5 years ago (2015-12-16 13:58:57 UTC) #7
jschuh
5 years ago (2015-12-16 18:39:27 UTC) #8
Message was sent while issue was closed.
lgtm, and thanks for cleaning it up

Powered by Google App Engine
This is Rietveld 408576698