From 31979e2d98d383b5742e8e5ea5022901859d0feb Mon Sep 17 00:00:00 2001 From: Frank Praznik Date: Fri, 2 Sep 2022 18:41:21 -0400 Subject: [PATCH] wayland: Add missing static qualifiers --- src/video/wayland/SDL_waylandwindow.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/video/wayland/SDL_waylandwindow.c b/src/video/wayland/SDL_waylandwindow.c index e203da8d3..78d6c1b2a 100644 --- a/src/video/wayland/SDL_waylandwindow.c +++ b/src/video/wayland/SDL_waylandwindow.c @@ -132,7 +132,7 @@ FullscreenModeEmulation(SDL_Window *window) ((window->flags & SDL_WINDOW_FULLSCREEN_DESKTOP) != SDL_WINDOW_FULLSCREEN_DESKTOP); } -SDL_bool +static SDL_bool NeedViewport(SDL_Window *window) { SDL_WindowData *wind = window->driverdata; @@ -448,7 +448,7 @@ SetFullscreen(SDL_Window *window, struct wl_output *output, SDL_bool commit) } } -const struct wl_callback_listener surface_damage_frame_listener; +static const struct wl_callback_listener surface_damage_frame_listener; static void surface_damage_frame_done(void *data, struct wl_callback *cb, uint32_t time) @@ -466,7 +466,7 @@ surface_damage_frame_done(void *data, struct wl_callback *cb, uint32_t time) wl_callback_add_listener(wind->surface_damage_frame_callback, &surface_damage_frame_listener, data); } -const struct wl_callback_listener surface_damage_frame_listener = { +static const struct wl_callback_listener surface_damage_frame_listener = { surface_damage_frame_done };