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

Issue 296823013: Fix g++ -pedantic warnings (Closed)

Created:
6 years, 7 months ago by Jim Stichnoth
Modified:
6 years, 7 months ago
CC:
native-client-reviews_googlegroups.com
Base URL:
https://gerrit.chromium.org/gerrit/p/native_client/pnacl-subzero.git@master
Visibility:
Public.

Description

Fix g++ -pedantic warnings. 1. Comma-terminated enumerator lists. 2. Empty macro arguments. 3. Variable-length arrays. The first issue is definitely hitting the Mac bots. The other two issues will quite possibly following that. BUG= none R=jfb@chromium.org Committed: https://gerrit.chromium.org/gerrit/gitweb?p=native_client/pnacl-subzero.git;a=commit;h=4376d29

Patch Set 1 #

Total comments: 2

Patch Set 2 : Roll back the VLA related changes #

Patch Set 3 : Remove the empty string concatenation since macro args won't be empty #

Unified diffs Side-by-side diffs Delta from patch set Stats (+35 lines, -23 lines) Patch
M src/IceInst.h View 4 chunks +4 lines, -0 lines 0 comments Download
M src/IceInstX8632.def View 2 chunks +19 lines, -20 lines 0 comments Download
M src/IceTargetLoweringX8632.cpp View 1 2 6 chunks +11 lines, -2 lines 0 comments Download
M src/IceTypes.h View 1 chunk +1 line, -0 lines 0 comments Download
M src/IceTypes.def View 1 chunk +0 lines, -1 line 0 comments Download

Messages

Total messages: 5 (0 generated)
Jim Stichnoth
6 years, 7 months ago (2014-05-23 04:40:00 UTC) #1
JF
https://codereview.chromium.org/296823013/diff/1/src/IceGlobalContext.cpp File src/IceGlobalContext.cpp (right): https://codereview.chromium.org/296823013/diff/1/src/IceGlobalContext.cpp#newcode102 src/IceGlobalContext.cpp:102: llvm::OwningArrayPtr<char> NameBaseOwner(new char[1 + Name.length()]); Ew. VLAs aren't that ...
6 years, 7 months ago (2014-05-23 16:45:21 UTC) #2
Jim Stichnoth
https://codereview.chromium.org/296823013/diff/1/src/IceGlobalContext.cpp File src/IceGlobalContext.cpp (right): https://codereview.chromium.org/296823013/diff/1/src/IceGlobalContext.cpp#newcode102 src/IceGlobalContext.cpp:102: llvm::OwningArrayPtr<char> NameBaseOwner(new char[1 + Name.length()]); On 2014/05/23 16:45:22, JF ...
6 years, 7 months ago (2014-05-23 18:26:44 UTC) #3
JF
lgtm
6 years, 7 months ago (2014-05-23 18:31:32 UTC) #4
Jim Stichnoth
6 years, 7 months ago (2014-05-23 20:39:05 UTC) #5
Message was sent while issue was closed.
Committed patchset #3 manually as r4376d29 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698