Commit 31979e2d98d383b5742e8e5ea5022901859d0feb

Frank Praznik 2022-09-02T18:41:21

wayland: Add missing static qualifiers

diff --git a/src/video/wayland/SDL_waylandwindow.c b/src/video/wayland/SDL_waylandwindow.c
index e203da8..78d6c1b 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
 };