Closed Bug 773842 Opened 12 years ago Closed 12 years ago

Fix build warnings under content/

Categories

(Core :: DOM: Core & HTML, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla17

People

(Reporter: dzbarsky, Assigned: dzbarsky)

References

Details

Attachments

(1 file, 1 obsolete file)

      No description provided.
Attached patch Patch (obsolete) — Splinter Review
Attachment #642120 - Flags: review?(jonas)
David, do you think you could try to add FAIL_ON_WARNINGS = 1 at some places in content/ subdirectories?
Attached patch PatchSplinter Review
Attachment #642120 - Attachment is obsolete: true
Attachment #642120 - Flags: review?(jonas)
Attachment #643524 - Flags: review?(mounir)
Comment on attachment 643524 [details] [diff] [review]
Patch

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

r=me with the nit below fixed.

BTW, make sure to send this to try with "-p all", "-p macosx" isn't going to be enough.

::: content/base/src/nsContentIterator.cpp
@@ +1199,5 @@
>    PRInt32 endOffset = mRange->EndOffset();
>    MOZ_ASSERT(mCommonParent && startParent && endParent);
>    // Bug 767169
> +  MOZ_ASSERT((PRUint32)startOffset <= startParent->Length() &&
> +             (PRUint32)endOffset <= endParent->Length());

PRUint32(foo) is more C++'y.
Attachment #643524 - Flags: review?(mounir) → review+
https://hg.mozilla.org/mozilla-central/rev/a0dc2d401d71
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla17
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: