Closed Bug 823080 Opened 12 years ago Closed 12 years ago

C4099 warning spam on MSVC

Categories

(Core :: JavaScript Engine, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla20

People

(Reporter: emk, Assigned: emk)

References

Details

Attachments

(1 file)

It looks like it was caused by bug 817818.
Either revert the s/struct/class/; change or update also jspubtd.h.
Assignee: general → VYV03354
Status: NEW → ASSIGNED
Attachment #694826 - Flags: review?(sphink)
Comment on attachment 694826 [details] [diff] [review]
Fix warning spam on MSVC

Review of attachment 694826 [details] [diff] [review]:
-----------------------------------------------------------------

::: js/src/jspubtd.h
@@ +190,5 @@
>  typedef struct JSPropertyDescriptor         JSPropertyDescriptor;
>  typedef struct JSPropertyName               JSPropertyName;
>  typedef struct JSPropertySpec               JSPropertySpec;
>  typedef struct JSRuntime                    JSRuntime;
> +class JSScript;

Can you preserve the semblance of C compatibility by moving JSFunction and JSScript into the #ifdef __cplusplus block? And add a C-only struct declaration, as with the others in that block.
Attachment #694826 - Flags: review?(sphink) → review+
https://hg.mozilla.org/mozilla-central/rev/847d24f0a8da
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla20
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: