GCC 4.6.3 build warning: nsDocument.cpp:6636:51: warning: comparison of unsigned expression >= 0 is always true [-Wtype-limits]

RESOLVED FIXED in mozilla15

Status

()

Core
DOM: Core & HTML
RESOLVED FIXED
5 years ago
5 years ago

People

(Reporter: dholbert, Assigned: dholbert)

Tracking

(Blocks: 1 bug)

Trunk
mozilla15
Points:
---
Dependency tree / graph

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

(Assignee)

Description

5 years ago
Filing bug on these build warnings:

../../../../mozilla/content/base/src/nsDocument.cpp: In member function ‘virtual nsresult nsDocument::RemoveFromRadioGroup(const nsAString_internal&, nsIFormControl*)’:
../../../../mozilla/content/base/src/nsDocument.cpp:6636:51: warning: comparison of unsigned expression >= 0 is always true [-Wtype-limits]
../../../../mozilla/content/base/src/nsDocument.cpp: In member function ‘virtual void nsDocument::RadioRequiredChanged(const nsAString_internal&, nsIFormControl*)’:
../../../../mozilla/content/base/src/nsDocument.cpp:6689:51: warning: comparison of unsigned expression >= 0 is always true [-Wtype-limits]

These warnings are about assertions that nsRadioGroupStruct::mRequiredRadioCount is >=0 -- that variable was actually unsigned when it was added...
   http://hg.mozilla.org/mozilla-central/rev/10fe279c3613#l1.21
...so these assertions have always been no-ops.
(Assignee)

Comment 1

5 years ago
Created attachment 619622 [details] [diff] [review]
fix
Assignee: nobody → dholbert
Status: NEW → ASSIGNED
Attachment #619622 - Flags: review?(mounir)
Attachment #619622 - Flags: review?(mounir) → review+
(Assignee)

Comment 2

5 years ago
https://hg.mozilla.org/integration/mozilla-inbound/rev/273e1b850db8
OS: Linux → All
Hardware: x86_64 → All
Target Milestone: --- → mozilla15

Comment 3

5 years ago
https://hg.mozilla.org/mozilla-central/rev/273e1b850db8
Status: ASSIGNED → RESOLVED
Last Resolved: 5 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.