mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2026-03-21 05:34:00 -04:00
Put WL_DEPRECATED in front of the function declarations
This fixes the following clang error when using C23:
../src/wayland-server-core.h:680:41: error: 'deprecated' attribute cannot be applied to types
680 | int32_t stride, uint32_t format) WL_DEPRECATED;
| ^
../src/wayland-util.h:52:25: note: expanded from macro 'WL_DEPRECATED'
52 | #define WL_DEPRECATED [[deprecated]]
| ^
Signed-off-by: Kirill Primak <vyivel@eclair.cafe>
This commit is contained in:
parent
f6f0a3cdec
commit
a6a4e081da
3 changed files with 22 additions and 11 deletions
|
|
@ -674,10 +674,11 @@ wl_display_init_shm(struct wl_display *display);
|
|||
uint32_t *
|
||||
wl_display_add_shm_format(struct wl_display *display, uint32_t format);
|
||||
|
||||
WL_DEPRECATED
|
||||
struct wl_shm_buffer *
|
||||
wl_shm_buffer_create(struct wl_client *client,
|
||||
uint32_t id, int32_t width, int32_t height,
|
||||
int32_t stride, uint32_t format) WL_DEPRECATED;
|
||||
int32_t stride, uint32_t format);
|
||||
|
||||
void
|
||||
wl_log_set_handler_server(wl_log_func_t handler);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue