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

Issue 184833002: - Assertions need to "touch" their conditions to avoid errors such as: (Closed)

Created:
6 years, 9 months ago by Ivan Posva
Modified:
6 years, 9 months ago
Reviewers:
floitsch
CC:
reviews_dartlang.org, vm-dev_dartlang.org
Visibility:
Public.

Description

- Assertions need to "touch" their conditions to avoid errors such as: runtime/third_party/double-conversion/src/cached-powers.cc:134:18: error: unused variable 'kCachedPowersLength' [-Werror,-Wunused-const-variable] static const int kCachedPowersLength = ARRAY_SIZE(kCachedPowers); Committed: https://code.google.com/p/dart/source/detail?r=33168

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+3 lines, -1 line) Patch
M runtime/third_party/double-conversion/src/utils.h View 1 chunk +3 lines, -1 line 0 comments Download

Messages

Total messages: 5 (0 generated)
Ivan Posva
TBR -Ivan
6 years, 9 months ago (2014-02-28 18:24:12 UTC) #1
Ivan Posva
Committed patchset #1 manually as r33168.
6 years, 9 months ago (2014-02-28 18:24:27 UTC) #2
floitsch
Please provide reproducable test-case. I had removed this work-around, because it doesn't work on Windows ...
6 years, 9 months ago (2014-02-28 18:31:48 UTC) #3
floitsch
and LGTM. You will run into issues when compiling on VS, though.
6 years, 9 months ago (2014-02-28 18:54:41 UTC) #4
Ivan Posva
6 years, 9 months ago (2014-03-01 00:34:14 UTC) #5
Message was sent while issue was closed.
On 2014/02/28 18:31:48, floitsch wrote:
> Please provide reproducable test-case.
> I had removed this work-around, because it doesn't work on Windows (with VS'
> compiler), and you didn't give me a way to reproduce even after I had asked
> several times.

- Checkout an all.deps version of the bleeding-edge Dart repository.
- setenv CC third_party/clang/linux/bin/clang
- setenv CXX third_party/clang/linux/bin/clang++
- Undo this CL
- Compile and verify that you are using clang++: ./tools/build.py --mode=all
--verbose runtime

Cheers,
-Ivan

Powered by Google App Engine
This is Rietveld 408576698