Closed
Bug 1562453
Opened 6 years ago
Closed 6 years ago
[-Werror,-Wtautological-type-limit-compare] Useless test - "is always false"
Categories
(Core :: WebVR, defect)
Core
WebVR
Tracking
()
RESOLVED
FIXED
mozilla69
Tracking | Status | |
---|---|---|
firefox69 | --- | fixed |
People
(Reporter: Sylvestre, Assigned: kip)
References
(Blocks 1 open bug, Regression)
Details
(Keywords: regression)
Attachments
(1 file)
The CI with -Werror is failing since bug 1466702 landed.
The warning is:
/var/lib/jenkins/workspace/firefox-clang-lld-last/dom/vr/VRServiceTest.cpp:635:17: error: result of comparison 'uint32_t' (aka 'unsigned int') > 4294967295 is always false [-Werror,-Wtautological-type-limit-compare]
if (aDuration > 0xffffffff) {
~~~~~~~~~ ^ ~~~~~~~~~~
/var/lib/jenkins/workspace/firefox-clang-lld-last/dom/vr/VRServiceTest.cpp:644:17: error: result of comparison 'uint32_t' (aka 'unsigned int') > 4294967295 is always false [-Werror,-Wtautological-type-limit-compare]
if (aDuration > 0xffffffff) {
~~~~~~~~~ ^ ~~~~~~~~~~
Kip, could you please have a look? Thanks
Flags: needinfo?(kgilbert)
Assignee | ||
Comment 1•6 years ago
|
||
There were a couple of checks to clamp arguments in VRServiceTest.cpp.
The final landed patch reduced the arguments to 32-bit unsigned
integers, making these checks redundant.
Pushed by kgilbert@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/6f1b37c88772
Remove uint32 clamping tests, which have no effect r=thomasmo
Comment 3•6 years ago
|
||
bugherder |
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla69
Updated•6 years ago
|
Assignee: nobody → kgilbert
Reporter | ||
Comment 5•6 years ago
|
||
thanks!
Reporter | ||
Updated•6 years ago
|
Blocks: clang-based-analysis
Updated•3 years ago
|
Has Regression Range: --- → yes
Updated•3 years ago
|
Keywords: regression
You need to log in
before you can comment on or make changes to this bug.
Description
•