Closed
Bug 529365
Opened 15 years ago
Closed 15 years ago
Fix build warnings: "warning: suggest explicit braces to avoid ambiguous 'else'"
Categories
(Core :: General, defect)
Tracking
()
RESOLVED
FIXED
People
(Reporter: dholbert, Assigned: dholbert)
Details
(Whiteboard: [build_warning])
Attachments
(3 files)
5.10 KB,
patch
|
roc
:
review+
|
Details | Diff | Splinter Review |
21.25 KB,
patch
|
Details | Diff | Splinter Review | |
2.69 KB,
patch
|
smontagu
:
review+
|
Details | Diff | Splinter Review |
mozilla-central currently hits these build warnings:
> ../../../../mozilla/intl/uconv/util/nsUCSupport.cpp:143: warning: suggest explicit braces to avoid ambiguous 'else'
> ../../../mozilla/layout/generic/nsImageMap.cpp:524: warning: suggest explicit braces to avoid ambiguous 'else'
(These are the only two instances of this particular warning, AFAIK.)
Assignee | ||
Comment 1•15 years ago
|
||
Here's the fix for this in the intl directory. This tweaks indentation (and fixes a number of whitespace-at-end-of-line issues, too), so I'll include a no-whitespace version as well. (coming up next)
Assignee: nobody → dholbert
Status: NEW → ASSIGNED
Assignee | ||
Comment 2•15 years ago
|
||
Comment on attachment 412920 [details] [diff] [review] patch 1: fix for /layout/ sorry, that one's the fix for layout. /intl/ one is coming up next. :)
Attachment #412920 -
Attachment description: patch 1: fix for /intl/ → patch 1: fix for /layout/
Assignee | ||
Comment 3•15 years ago
|
||
Assignee | ||
Comment 4•15 years ago
|
||
Assignee | ||
Updated•15 years ago
|
Attachment #412920 -
Flags: review?(dbaron)
Assignee | ||
Updated•15 years ago
|
Attachment #412922 -
Flags: review?(smontagu)
Updated•15 years ago
|
Attachment #412922 -
Flags: review?(smontagu) → review+
Assignee | ||
Comment 5•15 years ago
|
||
Comment on attachment 412920 [details] [diff] [review] patch 1: fix for /layout/ Redirecting /layout/ review request to roc, since I think dbaron has a lengthy review queue already. :)
Attachment #412920 -
Flags: review?(dbaron) → review?(roc)
Assignee | ||
Comment 6•15 years ago
|
||
(note that the actual code-changes in the /layout/ patch are about halfway down, in PolyArea::IsInside. Everything else is just excess-whitespace-cleanup in that file.)
Assignee | ||
Comment 7•15 years ago
|
||
(In reply to comment #6) > (note that the actual code-changes in the /layout/ patch (er, s/code changes/brace additions/... not sure I can really call those "code changes" :))
Attachment #412920 -
Flags: review?(roc) → review+
Assignee | ||
Comment 8•15 years ago
|
||
Pushed: http://hg.mozilla.org/mozilla-central/rev/788d26b3f784 http://hg.mozilla.org/mozilla-central/rev/52d5ed462c9e
Status: ASSIGNED → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Assignee | ||
Updated•14 years ago
|
Whiteboard: [build_warning]
You need to log in
before you can comment on or make changes to this bug.
Description
•