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

Issue 22842011: [NaCl SDK] Remove invalid assert from nacl_io. (Closed)

Created:
7 years, 4 months ago by Sam Clegg
Modified:
7 years, 3 months ago
Reviewers:
binji
CC:
chromium-reviews, binji
Visibility:
Public.

Description

[NaCl SDK] Remove invalid assert from nacl_io. Also, add NDEBUG to CFLAGS by default so that asserts not compiled into release builds, and fix resulting unused variable warnings by making KernelProxy::Init do more error checking and return a result. R=binji@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=221470

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Total comments: 1

Patch Set 4 : #

Patch Set 5 : #

Patch Set 6 : rebase + fix voronoi #

Patch Set 7 : fix input_event #

Total comments: 4

Patch Set 8 : #

Total comments: 1

Patch Set 9 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+64 lines, -19 lines) Patch
M native_client_sdk/src/examples/api/graphics_3d/graphics_3d.cc View 1 2 3 4 5 6 7 8 1 chunk +4 lines, -2 lines 0 comments Download
M native_client_sdk/src/examples/api/input_event/shared_queue.h View 1 2 3 4 5 6 7 2 chunks +9 lines, -1 line 0 comments Download
M native_client_sdk/src/examples/demo/nacl_io/nacl_io_demo.c View 1 2 3 4 5 6 7 8 1 chunk +4 lines, -1 line 0 comments Download
M native_client_sdk/src/examples/demo/voronoi/voronoi.cc View 1 2 3 4 5 1 chunk +3 lines, -0 lines 0 comments Download
M native_client_sdk/src/libraries/nacl_io/kernel_proxy.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M native_client_sdk/src/libraries/nacl_io/kernel_proxy.cc View 1 2 3 4 5 6 7 3 chunks +32 lines, -7 lines 0 comments Download
M native_client_sdk/src/libraries/nacl_io/kernel_wrap_newlib.cc View 2 chunks +0 lines, -2 lines 0 comments Download
M native_client_sdk/src/tests/nacl_io_test/kernel_proxy_test.cc View 1 2 3 chunks +6 lines, -3 lines 0 comments Download
M native_client_sdk/src/tools/common.mk View 1 chunk +4 lines, -1 line 0 comments Download
M native_client_sdk/src/tools/host_vc.mk View 1 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 9 (0 generated)
Sam Clegg
7 years, 4 months ago (2013-08-24 00:39:22 UTC) #1
Sam Clegg
Had to do a little more to this change to handle the used variable in ...
7 years, 4 months ago (2013-08-24 01:23:54 UTC) #2
binji
lgtm https://codereview.chromium.org/22842011/diff/12001/native_client_sdk/src/libraries/nacl_io/kernel_proxy.cc File native_client_sdk/src/libraries/nacl_io/kernel_proxy.cc (right): https://codereview.chromium.org/22842011/diff/12001/native_client_sdk/src/libraries/nacl_io/kernel_proxy.cc#newcode102 native_client_sdk/src/libraries/nacl_io/kernel_proxy.cc:102: if (result != 0) maybe use assert(false) inside ...
7 years, 4 months ago (2013-08-24 01:35:57 UTC) #3
Sam Clegg
fix input_event
7 years, 3 months ago (2013-09-04 19:10:34 UTC) #4
Sam Clegg
Fixed a couple of examples. PTAL.
7 years, 3 months ago (2013-09-04 19:10:58 UTC) #5
binji
slgtm You'll need to try against HEAD, I think. The lkgr is broken right now ...
7 years, 3 months ago (2013-09-04 20:21:47 UTC) #6
Sam Clegg
https://codereview.chromium.org/22842011/diff/43001/native_client_sdk/src/examples/api/input_event/shared_queue.h File native_client_sdk/src/examples/api/input_event/shared_queue.h (right): https://codereview.chromium.org/22842011/diff/43001/native_client_sdk/src/examples/api/input_event/shared_queue.h#newcode12 native_client_sdk/src/examples/api/input_event/shared_queue.h:12: #ifdef __GNUC__ On 2013/09/04 20:21:48, binji wrote: > not ...
7 years, 3 months ago (2013-09-04 20:54:43 UTC) #7
binji
https://codereview.chromium.org/22842011/diff/25001/native_client_sdk/src/examples/api/input_event/shared_queue.h File native_client_sdk/src/examples/api/input_event/shared_queue.h (right): https://codereview.chromium.org/22842011/diff/25001/native_client_sdk/src/examples/api/input_event/shared_queue.h#newcode57 native_client_sdk/src/examples/api/input_event/shared_queue.h:57: #define UNUSED __attribute__ ((unused)) sorry, I meant use __attribute__ ...
7 years, 3 months ago (2013-09-04 22:22:31 UTC) #8
Sam Clegg
7 years, 3 months ago (2013-09-05 18:33:03 UTC) #9
Message was sent while issue was closed.
Committed patchset #9 manually as r221470 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698