[Webkit-unassigned] [Bug 254828] New: [GTK] AcceleratedSurfaceDMABuf.cpp does not build on i368

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Mar 31 10:21:26 PDT 2023


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

            Bug ID: 254828
           Summary: [GTK] AcceleratedSurfaceDMABuf.cpp does not build on
                    i368
           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: mcatanzaro at gnome.org
                CC: bugs-noreply at webkitgtk.org

In file included from /buildstream/gnome/sdk/webkitgtk-6.0.bst/_builddir/DerivedSources/WebKit/unified-sources/UnifiedSource-54928a2b-29.cpp:2:
        /buildstream/gnome/sdk/webkitgtk-6.0.bst/Source/WebKit/WebProcess/WebPage/gtk/AcceleratedSurfaceDMABuf.cpp:133:20: error: non-constant-expression cannot be narrowed from type 'uint32_t' (aka 'unsigned int') to 'int' in initializer list [-Wc++11-narrowing]
                EGL_WIDTH, gbm_bo_get_width(backObject),
                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
        /buildstream/gnome/sdk/webkitgtk-6.0.bst/Source/WebKit/WebProcess/WebPage/gtk/AcceleratedSurfaceDMABuf.cpp:133:20: note: insert an explicit cast to silence this issue
                EGL_WIDTH, gbm_bo_get_width(backObject),
                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
                           static_cast<int>(           )
        /buildstream/gnome/sdk/webkitgtk-6.0.bst/Source/WebKit/WebProcess/WebPage/gtk/AcceleratedSurfaceDMABuf.cpp:134:21: error: non-constant-expression cannot be narrowed from type 'uint32_t' (aka 'unsigned int') to 'int' in initializer list [-Wc++11-narrowing]
                EGL_HEIGHT, gbm_bo_get_height(backObject),
                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        /buildstream/gnome/sdk/webkitgtk-6.0.bst/Source/WebKit/WebProcess/WebPage/gtk/AcceleratedSurfaceDMABuf.cpp:134:21: note: insert an explicit cast to silence this issue
                EGL_HEIGHT, gbm_bo_get_height(backObject),
                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                            static_cast<int>(            )
        /buildstream/gnome/sdk/webkitgtk-6.0.bst/Source/WebKit/WebProcess/WebPage/gtk/AcceleratedSurfaceDMABuf.cpp:135:35: error: non-constant-expression cannot be narrowed from type 'uint32_t' (aka 'unsigned int') to 'int' in initializer list [-Wc++11-narrowing]
                EGL_LINUX_DRM_FOURCC_EXT, gbm_bo_get_format(backObject),
                                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        /buildstream/gnome/sdk/webkitgtk-6.0.bst/Source/WebKit/WebProcess/WebPage/gtk/AcceleratedSurfaceDMABuf.cpp:135:35: note: insert an explicit cast to silence this issue
                EGL_LINUX_DRM_FOURCC_EXT, gbm_bo_get_format(backObject),
                                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                                          static_cast<int>(            )
        /buildstream/gnome/sdk/webkitgtk-6.0.bst/Source/WebKit/WebProcess/WebPage/gtk/AcceleratedSurfaceDMABuf.cpp:137:40: error: non-constant-expression cannot be narrowed from type 'uint32_t' (aka 'unsigned int') to 'int' in initializer list [-Wc++11-narrowing]
                EGL_DMA_BUF_PLANE0_OFFSET_EXT, gbm_bo_get_offset(backObject, 0),
                                               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        /buildstream/gnome/sdk/webkitgtk-6.0.bst/Source/WebKit/WebProcess/WebPage/gtk/AcceleratedSurfaceDMABuf.cpp:137:40: note: insert an explicit cast to silence this issue
                EGL_DMA_BUF_PLANE0_OFFSET_EXT, gbm_bo_get_offset(backObject, 0),
                                               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                                               static_cast<int>(               )
        /buildstream/gnome/sdk/webkitgtk-6.0.bst/Source/WebKit/WebProcess/WebPage/gtk/AcceleratedSurfaceDMABuf.cpp:138:39: error: non-constant-expression cannot be narrowed from type 'uint32_t' (aka 'unsigned int') to 'int' in initializer list [-Wc++11-narrowing]
                EGL_DMA_BUF_PLANE0_PITCH_EXT, gbm_bo_get_stride(backObject),
                                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        /buildstream/gnome/sdk/webkitgtk-6.0.bst/Source/WebKit/WebProcess/WebPage/gtk/AcceleratedSurfaceDMABuf.cpp:138:39: note: insert an explicit cast to silence this issue
                EGL_DMA_BUF_PLANE0_PITCH_EXT, gbm_bo_get_stride(backObject),
                                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                                              static_cast<int>(            )
        5 errors generated.

-- 
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/20230331/b100b657/attachment-0001.htm>


More information about the webkit-unassigned mailing list