Open
Bug 864870
Opened 12 years ago
Updated 8 months ago
Reenable narrowing-conversion warnings in MSVC, enable them in clang/gcc
Categories
(Core :: JavaScript Engine, enhancement, P5)
Core
JavaScript Engine
Tracking
()
NEW
People
(Reporter: Waldo, Unassigned)
References
(Blocks 1 open bug)
Details
Attachments
(1 file)
3.26 KB,
patch
|
Details | Diff | Splinter Review |
We disabled them awhile back in bug 610480 because we thought they were spammy-ish. But really, they kinda point out issues. We should fix any instances of the problems, then reenable. (Or enable, as the case is, for clang/gcc -- -Wconversion, -Wshorten-64-to-32.)
It might be a good idea at the same time to add some helper methods to perform the casts, that verify the casts are safe to perform. I've been meaning to add these to mfbt but haven't gotten around to it. Maybe now, ish, is the time to do that.
Reporter | ||
Comment 1•12 years ago
|
||
The warning-stream this spews with gcc (at least) is kind of incredible. It'll take some effort to sort through it all. A bunch of warnings are likely to be in headers, tho, so I imagine the overall volume can be cut substantially with little effort.
Reporter | ||
Updated•12 years ago
|
Assignee: general → jwalden+bmo
Comment 2•2 years ago
|
||
The bug assignee is inactive on Bugzilla, so the assignee is being reset.
Assignee: jwalden → nobody
Updated•2 years ago
|
Severity: normal → S3
Updated•8 months ago
|
You need to log in
before you can comment on or make changes to this bug.
Description
•