Closed
Bug 797049
Opened 12 years ago
Closed 12 years ago
Disable C4351 when compiling with MSVC, sync up disabled warnings between configure.in and js/src/configure.in
Categories
(Firefox Build System :: General, defect)
Firefox Build System
General
Tracking
(Not tracked)
RESOLVED
FIXED
mozilla18
People
(Reporter: Waldo, Assigned: Waldo)
References
Details
Attachments
(1 file)
2.89 KB,
patch
|
khuey
:
review+
|
Details | Diff | Splinter Review |
C4351 warns for this case:
struct S
{
char a[5];
S() : a() { }
};
and specifically for the |a()|, which since MSVC 2005 will default-initialize |a|. That's the standard behavior, and JS has code which expects it, so we should just disable this warning.
I also took the opportunity to slightly clean up the disabled-warnings list for MSVC in both configure scripts.
There's one other warning that JS disables that isn't disabled in the overall configure, but I think it was a mistake to disable C4244, so I'm not adding it right now, and I'd actually like to un-disable it in JS and fix the cases where we hit it.
With this patch compiling the JS shell is again warning-free on Windows in opt builds.
Attachment #667080 -
Flags: review?(khuey)
Attachment #667080 -
Flags: review?(khuey) → review+
Assignee | ||
Comment 1•12 years ago
|
||
Target Milestone: --- → mozilla18
Comment 2•12 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Flags: in-testsuite-
Resolution: --- → FIXED
Updated•7 years ago
|
Product: Core → Firefox Build System
You need to log in
before you can comment on or make changes to this bug.
Description
•