Skip to content

Commit

Permalink
Cast to EGLNativeWindowType explicitly
Browse files Browse the repository at this point in the history
In order to avoid off build failures due to mismatching (but
compatible) declarations of wl_egl_window and EGLNativeWindowType,
add an explicit cast to EGLNativeWindowType inside the
TargetWayland::nativeWindow() function.

Solves the following build issue found by the Buildroot autobuilders:

  http://autobuild.buildroot.net/results/92c5cc3134e92c263a0cbb4c05ef8956569e434b/

(cherry picked from commit e56a259)
  • Loading branch information
aperezdc committed Aug 14, 2024
1 parent f121a8e commit dbaac06
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/egl-client-wayland.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ TargetWayland::~TargetWayland()

EGLNativeWindowType TargetWayland::nativeWindow() const
{
return m_egl.window;
return (EGLNativeWindowType) m_egl.window;
}

void TargetWayland::resize(uint32_t width, uint32_t height)
Expand Down

0 comments on commit dbaac06

Please sign in to comment.