Skip to content
  • Olivier Fourdan's avatar
    xwayland: Fix XIOErrorExitHandler warning · 79d4d7a4
    Olivier Fourdan authored and Marge Bot's avatar Marge Bot committed
    The XIOErrorExitHandler expects (Display *, void *) whereas mutter uses
    (Display *, MetaX11Display *).
    
    That causes a warning at build time:
    
      warning: passing argument 2 of ‘XSetIOErrorExitHandler’ from
               incompatible pointer type [-Wincompatible-pointer-types]
        813 |   XSetIOErrorExitHandler (xdisplay, x_io_error_exit, display);
    
    Actually, the MetaX11Display is not even used, so we can just use the
    expected API and ignore the value.
    
    Part-of: <!1621>
    79d4d7a4