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

Issue 8825003: Fix GCC 4.7 warnings, which are related to char being signed in GCC (Closed)

Created:
9 years ago by Tobias Burnus
Modified:
9 years ago
CC:
v8-dev
Visibility:
Public.

Description

Fix GCC 4.7 warnings, which are related to char being signed in GCC ("narrowing conversion ... inside { } is ill-formed in C++11"). * src/mksnapshot.cc: Cast "char" to "unsigned char" when outputting snapshot. * test/cctest/test-regexp.cc: Use static_cast to uc16 as the char literal is signed. Committed: http://code.google.com/p/v8/source/detail?r=10241

Patch Set 1 #

Patch Set 2 : Fix GCC 4.7 warnings, which are related to char being signed in GCC #

Total comments: 6

Patch Set 3 : Fix GCC 4.7 warnings, which are related to char being signed in GCC #

Unified diffs Side-by-side diffs Delta from patch set Stats (+6 lines, -3 lines) Patch
M AUTHORS View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M src/mksnapshot.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M test/cctest/test-regexp.cc View 1 2 2 chunks +4 lines, -2 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
Tobias Burnus
Part two of the effort to make v8 buildable with GCC "4.7.0 (experimental)", which also ...
9 years ago (2011-12-06 20:32:49 UTC) #1
Vyacheslav Egorov (Chromium)
http://codereview.chromium.org/8825003/diff/3001/src/mksnapshot.cc File src/mksnapshot.cc (right): http://codereview.chromium.org/8825003/diff/3001/src/mksnapshot.cc#newcode112 src/mksnapshot.cc:112: fprintf(fp, "%d", at(j)); Instead of using unsigned char you ...
9 years ago (2011-12-12 18:06:17 UTC) #2
Tobias Burnus
Review fixes: - Only a cast for printf - Use static_cast instead of const_cast - ...
9 years ago (2011-12-12 21:54:00 UTC) #3
Vyacheslav Egorov (Chromium)
9 years ago (2011-12-13 12:43:20 UTC) #4
LGTM

I will be landing.

Powered by Google App Engine
This is Rietveld 408576698