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

Issue 1148953002: Cast pointers used with %p format strings to void * (Closed)

Created:
5 years, 7 months ago by Derek Schuff
Modified:
5 years, 7 months ago
Reviewers:
khimg, Roland McGrath
CC:
native-client-reviews_googlegroups.com
Base URL:
https://chromium.googlesource.com/native_client/src/native_client.git@master
Target Ref:
refs/heads/master
Project:
nacl
Visibility:
Public.

Description

Cast pointers used with %p format strings to void * Clang's upcoming -Wformat-pedantic warning wants this. R=mcgrathr@chromium.org BUG=none Committed: https://chromium.googlesource.com/native_client/src/native_client/+/561075fe3e64272c283340feed96f3f2435173a2

Patch Set 1 #

Patch Set 2 : rebase #

Patch Set 3 : #

Total comments: 4

Patch Set 4 : review #

Patch Set 5 : #

Total comments: 3

Patch Set 6 : use C-style everywhere #

Unified diffs Side-by-side diffs Delta from patch set Stats (+19 lines, -15 lines) Patch
M tests/dynamic_code_loading/dyncode_demand_alloc_test.c View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M tests/libc/memcpy_move_set.c View 1 2 3 2 chunks +3 lines, -2 lines 0 comments Download
M tests/libc/posix_memalign.c View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M tests/mmap/mmap_prot_test.c View 1 2 3 3 chunks +3 lines, -3 lines 0 comments Download
M tests/mmap/mmap_test.cc View 1 2 3 4 5 2 chunks +4 lines, -2 lines 0 comments Download
M tests/stack_alignment/stack_alignment_asm_test.c View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M tests/toolchain/frame_addresses.c View 1 2 3 4 chunks +5 lines, -4 lines 0 comments Download

Messages

Total messages: 13 (3 generated)
Derek Schuff
5 years, 7 months ago (2015-05-20 20:29:25 UTC) #1
khimg
https://codereview.chromium.org/1148953002/diff/40001/tests/mmap/mmap_test.cc File tests/mmap/mmap_test.cc (right): https://codereview.chromium.org/1148953002/diff/40001/tests/mmap/mmap_test.cc#newcode84 tests/mmap/mmap_test.cc:84: (void *)addr, value); Why C cast? It's C++ file, ...
5 years, 7 months ago (2015-05-20 20:44:12 UTC) #3
Roland McGrath
In C code, it should be '(void *) expr' (space). In C++ code, it should ...
5 years, 7 months ago (2015-05-20 20:51:53 UTC) #4
Derek Schuff
https://codereview.chromium.org/1148953002/diff/40001/tests/dynamic_code_loading/dyncode_demand_alloc_test.c File tests/dynamic_code_loading/dyncode_demand_alloc_test.c (right): https://codereview.chromium.org/1148953002/diff/40001/tests/dynamic_code_loading/dyncode_demand_alloc_test.c#newcode41 tests/dynamic_code_loading/dyncode_demand_alloc_test.c:41: fprintf(stderr, "Mismatch at %p\n", (void *)ptr); On 2015/05/20 20:51:53, ...
5 years, 7 months ago (2015-05-20 21:32:07 UTC) #5
Roland McGrath
lgtm
5 years, 7 months ago (2015-05-20 21:35:43 UTC) #6
Derek Schuff
https://codereview.chromium.org/1148953002/diff/80001/tests/mmap/mmap_test.cc File tests/mmap/mmap_test.cc (right): https://codereview.chromium.org/1148953002/diff/80001/tests/mmap/mmap_test.cc#newcode84 tests/mmap/mmap_test.cc:84: static_cast<void *>(addr), value); so, you can't cast away volatile ...
5 years, 7 months ago (2015-05-20 22:03:44 UTC) #7
khimg
https://codereview.chromium.org/1148953002/diff/80001/tests/mmap/mmap_test.cc File tests/mmap/mmap_test.cc (right): https://codereview.chromium.org/1148953002/diff/80001/tests/mmap/mmap_test.cc#newcode84 tests/mmap/mmap_test.cc:84: static_cast<void *>(addr), value); On 2015/05/20 22:03:44, Derek Schuff wrote: ...
5 years, 7 months ago (2015-05-20 22:16:18 UTC) #8
Derek Schuff
https://codereview.chromium.org/1148953002/diff/80001/tests/mmap/mmap_test.cc File tests/mmap/mmap_test.cc (right): https://codereview.chromium.org/1148953002/diff/80001/tests/mmap/mmap_test.cc#newcode84 tests/mmap/mmap_test.cc:84: static_cast<void *>(addr), value); On 2015/05/20 22:16:18, khimg wrote: > ...
5 years, 7 months ago (2015-05-22 16:38:50 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1148953002/100001
5 years, 7 months ago (2015-05-22 19:18:04 UTC) #12
commit-bot: I haz the power
5 years, 7 months ago (2015-05-22 19:19:17 UTC) #13
Message was sent while issue was closed.
Committed patchset #6 (id:100001) as
https://chromium.googlesource.com/native_client/src/native_client/+/561075fe3...

Powered by Google App Engine
This is Rietveld 408576698