Closed
Bug 825107
Opened 13 years ago
Closed 13 years ago
Fix -Wint-to-pointer-cast warnings in nsTraceRefcntImpl.cpp.
Categories
(Core :: XPCOM, defect)
Core
XPCOM
Tracking
()
RESOLVED
FIXED
mozilla20
People
(Reporter: n.nethercote, Assigned: n.nethercote)
References
(Blocks 1 open bug)
Details
Attachments
(1 file)
|
12.56 KB,
patch
|
benjamin
:
review+
|
Details | Diff | Splinter Review |
clang 3.2 emits two warnings due to casting int32_t values to void*:
xpcom/base/nsTraceRefcntImpl.cpp:610:55 [-Wint-to-pointer-cast] cast to 'const void *' from smaller integer type 'int32_t' (aka 'int')
xpcom/base/nsTraceRefcntImpl.cpp:818:42 [-Wint-to-pointer-cast] cast to 'const void *' from smaller integer type 'int32_t' (aka 'int')
| Assignee | ||
Comment 1•13 years ago
|
||
This patch fixes this by using intptr_t instead of int32_t for serial
numbers.
bsmedberg, I wasn't sure if you were the right reviewer for this. Please
change to the request to someone else if that's appropriate.
Attachment #696189 -
Flags: review?(benjamin)
| Assignee | ||
Updated•13 years ago
|
Blocks: buildwarning
Updated•13 years ago
|
Attachment #696189 -
Flags: review?(benjamin) → review+
| Assignee | ||
Comment 2•13 years ago
|
||
Comment 3•13 years ago
|
||
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla20
You need to log in
before you can comment on or make changes to this bug.
Description
•