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)

x86
Linux
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: dholbert, Assigned: dholbert)

Details

(Whiteboard: [build_warning])

Attachments

(3 files)

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.)
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
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/
Attachment #412920 - Flags: review?(dbaron)
Attachment #412922 - Flags: review?(smontagu)
Attachment #412922 - Flags: review?(smontagu) → review+
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)
(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.)
(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" :))
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
Whiteboard: [build_warning]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: