Closed
Bug 646304
Opened 14 years ago
Closed 14 years ago
Warning C4099: 'JSString' : type name first seen using 'struct' now seen using 'class'
Categories
(Core :: JavaScript Engine, defect)
Tracking
()
RESOLVED
FIXED
People
(Reporter: RyanVM, Assigned: dmandelin)
References
Details
(Whiteboard: [build_warning][fixed-in-tracemonkey])
Attachments
(1 file)
675 bytes,
patch
|
bent.mozilla
:
review+
|
Details | Diff | Splinter Review |
On current m-c, this warning is spammed all over the tree.
c:\mozbuild\mozilla-central\objdir-fx\dist\include\jsval.h(271) : warning C4099: 'JSString' : type name first seen using 'struct' now seen using 'class'
c:\mozbuild\mozilla-central\objdir-fx\dist\include\nsXULAppAPI.h(548) : see declaration of 'JSString'
Reporter | ||
Updated•14 years ago
|
Whiteboard: [build_warning]
Reporter | ||
Comment 1•14 years ago
|
||
http://mxr.mozilla.org/mozilla-central/source/js/src/jsval.h#270
So jsval.h defines JSString as a class ifdef __cplusplus and otherwise as a struct. nxXULAppAPI.h declares it as a struct with no ifdefs. The change was made in bug 613457.
Luke, this is a very painful warning as it spams all over the tree.
Blocks: 613457
Comment 2•14 years ago
|
||
I hate that warning. Can we turn it off globally?
Assignee | ||
Comment 3•14 years ago
|
||
Assignee: general → dmandelin
Status: NEW → ASSIGNED
Attachment #522907 -
Flags: review?(bent.mozilla)
Updated•14 years ago
|
Attachment #522907 -
Flags: review?(bent.mozilla) → review+
Assignee | ||
Comment 4•14 years ago
|
||
Whiteboard: [build_warning] → [build_warning][fixed-in-tracemonkey]
Comment 5•14 years ago
|
||
cdleary-bot mozilla-central merge info:
http://hg.mozilla.org/mozilla-central/rev/df211d75bddc
Comment 6•14 years ago
|
||
cdleary-bot mozilla-central merge info:
http://hg.mozilla.org/mozilla-central/rev/df211d75bddc
Comment 7•14 years ago
|
||
Sorry for the extra comment, working out a few kinks.
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•