mirror of
https://gitlab.freedesktop.org/wayland/weston.git
synced 2025-12-20 15:10:09 +01:00
windowed-output-api.h: Do an explicit cast to avoid C++ build failure
Address the following build issue: error: invalid conversion from ‘const void*’ to ‘const weston_windowed_output_api*’ [-fpermissive] return weston_plugin_api_get(compositor, api_names[type], ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | const void* sizeof(struct weston_windowed_output_api)); Signed-off-by: Marius Vlad <marius.vlad@collabora.com>
This commit is contained in:
parent
8634c7e349
commit
dae61f3321
1 changed files with 3 additions and 2 deletions
|
|
@ -100,7 +100,8 @@ weston_windowed_output_get_api(struct weston_compositor *compositor,
|
||||||
if (type >= ARRAY_LENGTH(api_names))
|
if (type >= ARRAY_LENGTH(api_names))
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
return weston_plugin_api_get(compositor, api_names[type],
|
return (const struct weston_windowed_output_api *)
|
||||||
|
weston_plugin_api_get(compositor, api_names[type],
|
||||||
sizeof(struct weston_windowed_output_api));
|
sizeof(struct weston_windowed_output_api));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue