Open
Bug 1620267
Opened 4 years ago
Updated 2 years ago
DefineEnum.h: comparison is always true due to limited range of data type [-Werror=type-limits]
Categories
(Core :: MFBT, defect)
Core
MFBT
Tracking
()
NEW
People
(Reporter: Sylvestre, Unassigned)
References
Details
With gcc 9.2.1-30
In file included from /root/firefox-gcc-last/obj-x86_64-pc-linux-gnu/dist/include/mozilla/gfx/Types.h:10,
from /root/firefox-gcc-last/obj-x86_64-pc-linux-gnu/dist/include/mozilla/gfx/Coord.h:12,
from /root/firefox-gcc-last/obj-x86_64-pc-linux-gnu/dist/include/Units.h:12,
from /root/firefox-gcc-last/obj-x86_64-pc-linux-gnu/dist/include/mozilla/MVMContext.h:8,
from /root/firefox-gcc-last/obj-x86_64-pc-linux-gnu/dist/include/MobileViewportManager.h:11,
from /root/firefox-gcc-last/gfx/layers/apz/test/gtest/mvm/TestMobileViewportManager.cpp:12,
from Unified_cpp_apz_test_gtest_mvm0.cpp:2:
/root/firefox-gcc-last/obj-x86_64-pc-linux-gnu/dist/include/mozilla/DefineEnum.h:108:36: error: comparison is always true due to limited range of data type [-Werror=type-limits]
108 | (aEnumName::aEnumeratorDecl) >= aEnumName(0), \
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
/root/firefox-gcc-last/obj-x86_64-pc-linux-gnu/dist/include/mozilla/DefineEnum.h:108:36: error: comparison is always true due to limited range of data type [-Werror=type-limits]
108 | (aEnumName::aEnumeratorDecl) >= aEnumName(0), \
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
/root/firefox-gcc-last/obj-x86_64-pc-linux-gnu/dist/include/mozilla/DefineEnum.h:108:36: error: comparison is always true due to limited range of data type [-Werror=type-limits]
108 | (aEnumName::aEnumeratorDecl) >= aEnumName(0), \
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
/root/firefox-gcc-last/obj-x86_64-pc-linux-gnu/dist/include/mozilla/DefineEnum.h:108:36: error: comparison is always true due to limited range of data type [-Werror=type-limits]
108 | (aEnumName::aEnumeratorDecl) >= aEnumName(0), \
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
Updated•2 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•