<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>194290</bug_id>
          
          <creation_ts>2019-02-05 08:58:19 -0800</creation_ts>
          <short_desc>[WPE] WindowViewBackend does not build because of wl_array_for_each macro</short_desc>
          <delta_ts>2019-03-04 02:42:18 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>WPE WebKit</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>194898</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Olivier Blin">olivier.blin</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>bugs-noreply</cc>
    
    <cc>cgarcia</cc>
    
    <cc>loic.yhuel</cc>
    
    <cc>mcatanzaro</cc>
    
    <cc>zan</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1502377</commentid>
    <comment_count>0</comment_count>
    <who name="Olivier Blin">olivier.blin</who>
    <bug_when>2019-02-05 08:58:19 -0800</bug_when>
    <thetext>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)-&gt;data; (const char *) p &lt; ((const char *) (states)-&gt;data + (states)-&gt;size); (p)++)
                                                                                                      ~~~^

Also see this wayland issue: https://gitlab.freedesktop.org/wayland/wayland/issues/34</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1512106</commentid>
    <comment_count>1</comment_count>
    <who name="Olivier Blin">olivier.blin</who>
    <bug_when>2019-03-04 02:42:18 -0800</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 194898 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>