[Webkit-unassigned] [Bug 258798] New: [GTK] Build failure: comparison of unsigned expression in ‘>= 0’ is always true

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Jul 3 03:26:26 PDT 2023


https://bugs.webkit.org/show_bug.cgi?id=258798

            Bug ID: 258798
           Summary: [GTK] Build failure: comparison of unsigned expression
                    in ‘>= 0’ is always true
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: WebKitGTK
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: kdwkleung at protonmail.com
                CC: bugs-noreply at webkitgtk.org

/app/webkit/Source/JavaScriptCore/assembler/testmasm.cpp: In function ‘void {anonymous}::testExtractUnsignedBitfield64()’:
/app/webkit/Source/JavaScriptCore/assembler/testmasm.cpp:1360:21: error: comparison of unsigned expression in ‘>= 0’ is always true [-Werror=type-limits]
 1360 |             if (lsb >= 0 && width > 0 && lsb + width < 64) {
      |                 ~~~~^~~~
/app/webkit/Source/JavaScriptCore/assembler/testmasm.cpp: In function ‘void {anonymous}::testInsertUnsignedBitfieldInZero32()’:
/app/webkit/Source/JavaScriptCore/assembler/testmasm.cpp:1384:21: error: comparison of unsigned expression in ‘>= 0’ is always true [-Werror=type-limits]
 1384 |             if (lsb >= 0 && width > 0 && lsb + width < 32) {
      |                 ~~~~^~~~
/app/webkit/Source/JavaScriptCore/assembler/testmasm.cpp: In function ‘void {anonymous}::testInsertUnsignedBitfieldInZero64()’:
/app/webkit/Source/JavaScriptCore/assembler/testmasm.cpp:1409:21: error: comparison of unsigned expression in ‘>= 0’ is always true [-Werror=type-limits]
 1409 |             if (lsb >= 0 && width > 0 && lsb + width < 64) {
      |                 ~~~~^~~~
/app/webkit/Source/JavaScriptCore/assembler/testmasm.cpp: In function ‘void {anonymous}::testInsertBitField32()’:
/app/webkit/Source/JavaScriptCore/assembler/testmasm.cpp:1435:21: error: comparison of unsigned expression in ‘>= 0’ is always true [-Werror=type-limits]
 1435 |             if (lsb >= 0 && width > 0 && lsb + width < 32) {
      |                 ~~~~^~~~
/app/webkit/Source/JavaScriptCore/assembler/testmasm.cpp: In function ‘void {anonymous}::testInsertBitField64()’:
/app/webkit/Source/JavaScriptCore/assembler/testmasm.cpp:1465:21: error: comparison of unsigned expression in ‘>= 0’ is always true [-Werror=type-limits]
 1465 |             if (lsb >= 0 && width > 0 && lsb + width < 64) {
      |                 ~~~~^~~~
/app/webkit/Source/JavaScriptCore/assembler/testmasm.cpp: In function ‘void {anonymous}::testExtractInsertBitfieldAtLowEnd32()’:
/app/webkit/Source/JavaScriptCore/assembler/testmasm.cpp:1495:21: error: comparison of unsigned expression in ‘>= 0’ is always true [-Werror=type-limits]
 1495 |             if (lsb >= 0 && width > 0 && lsb + width < 32) {
      |                 ~~~~^~~~
/app/webkit/Source/JavaScriptCore/assembler/testmasm.cpp: In function ‘void {anonymous}::testExtractInsertBitfieldAtLowEnd64()’:
/app/webkit/Source/JavaScriptCore/assembler/testmasm.cpp:1525:21: error: comparison of unsigned expression in ‘>= 0’ is always true [-Werror=type-limits]
 1525 |             if (lsb >= 0 && width > 0 && lsb + width < 64) {
      |                 ~~~~^~~~
/app/webkit/Source/JavaScriptCore/assembler/testmasm.cpp: In function ‘void {anonymous}::testClearBitField32()’:
/app/webkit/Source/JavaScriptCore/assembler/testmasm.cpp:1554:21: error: comparison of unsigned expression in ‘>= 0’ is always true [-Werror=type-limits]
 1554 |             if (lsb >= 0 && width > 0 && lsb + width < 32) {
      |                 ~~~~^~~~
/app/webkit/Source/JavaScriptCore/assembler/testmasm.cpp: In function ‘void {anonymous}::testClearBitField64()’:
/app/webkit/Source/JavaScriptCore/assembler/testmasm.cpp:1579:21: error: comparison of unsigned expression in ‘>= 0’ is always true [-Werror=type-limits]
 1579 |             if (lsb >= 0 && width > 0 && lsb + width < 32) {
      |                 ~~~~^~~~
/app/webkit/Source/JavaScriptCore/assembler/testmasm.cpp: In function ‘void {anonymous}::testInsertSignedBitfieldInZero32()’:
/app/webkit/Source/JavaScriptCore/assembler/testmasm.cpp:1676:21: error: comparison of unsigned expression in ‘>= 0’ is always true [-Werror=type-limits]
 1676 |             if (lsb >= 0 && width > 0 && lsb + width < 32) {
      |                 ~~~~^~~~
/app/webkit/Source/JavaScriptCore/assembler/testmasm.cpp: In function ‘void {anonymous}::testInsertSignedBitfieldInZero64()’:
/app/webkit/Source/JavaScriptCore/assembler/testmasm.cpp:1706:21: error: comparison of unsigned expression in ‘>= 0’ is always true [-Werror=type-limits]
 1706 |             if (lsb >= 0 && width > 0 && lsb + width < 64) {
      |                 ~~~~^~~~
/app/webkit/Source/JavaScriptCore/assembler/testmasm.cpp: In function ‘void {anonymous}::testExtractSignedBitfield32()’:
/app/webkit/Source/JavaScriptCore/assembler/testmasm.cpp:1735:21: error: comparison of unsigned expression in ‘>= 0’ is always true [-Werror=type-limits]
 1735 |             if (lsb >= 0 && width > 0 && lsb + width < 32) {
      |                 ~~~~^~~~
/app/webkit/Source/JavaScriptCore/assembler/testmasm.cpp: In function ‘void {anonymous}::testExtractSignedBitfield64()’:
/app/webkit/Source/JavaScriptCore/assembler/testmasm.cpp:1765:21: error: comparison of unsigned expression in ‘>= 0’ is always true [-Werror=type-limits]
 1765 |             if (lsb >= 0 && width > 0 && lsb + width < 64) {
      |                 ~~~~^~~~
/app/webkit/Source/JavaScriptCore/assembler/testmasm.cpp: In function ‘void {anonymous}::testExtractRegister32()’:
/app/webkit/Source/JavaScriptCore/assembler/testmasm.cpp:1796:23: error: comparison of unsigned expression in ‘>= 0’ is always true [-Werror=type-limits]
 1796 |                 if (0 <= lsb && lsb < datasize) {
      |                     ~~^~~~~~
/app/webkit/Source/JavaScriptCore/assembler/testmasm.cpp: In function ‘void {anonymous}::testExtractRegister64()’:
/app/webkit/Source/JavaScriptCore/assembler/testmasm.cpp:1833:23: error: comparison of unsigned expression in ‘>= 0’ is always true [-Werror=type-limits]
 1833 |                 if (0 <= lsb && lsb < datasize) {
      |                     ~~^~~~~~
/app/webkit/Source/JavaScriptCore/assembler/testmasm.cpp: In lambda function:
/app/webkit/Source/JavaScriptCore/assembler/testmasm.cpp:3013:37: error: suggest parentheses around ‘-’ in operand of ‘&’ [-Werror=parentheses]
 3013 |         return value & (1ull << 48) - 1;
      |                        ~~~~~~~~~~~~~^~~
cc1plus: all warnings being treated as errors
[51/4336] Building CXX object Source/WebCor...p/GraphicsContextGLTextureMapperANGLE.cpp.o
ninja: build stopped: subcommand failed.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20230703/b7cdbac8/attachment.htm>


More information about the webkit-unassigned mailing list