Bug 194290 - [WPE] WindowViewBackend does not build because of wl_array_for_each macro
Summary: [WPE] WindowViewBackend does not build because of wl_array_for_each macro
Status: RESOLVED DUPLICATE of bug 194898
Alias: None
Product: WebKit
Classification: Unclassified
Component: WPE WebKit (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-02-05 08:58 PST by Olivier Blin
Modified: 2019-03-04 02:42 PST (History)
5 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Olivier Blin 2019-02-05 08:58:19 PST
WindowViewBackend does not build with clang, because the wl_array_for_each() macro is used with a pointer to void, which does not allow to do arithmetic:

Tools/wpe/backends/WindowViewBackend.cpp:445:106: error: arithmetic on a pointer to void
        for (p = (states)->data; (const char *) p < ((const char *) (states)->data + (states)->size); (p)++)
                                                                                                      ~~~^

Also see this wayland issue: https://gitlab.freedesktop.org/wayland/wayland/issues/34
Comment 1 Olivier Blin 2019-03-04 02:42:18 PST

*** This bug has been marked as a duplicate of bug 194898 ***