[PATCH 2/2] sandbox: sdl: make window variable static

Jules Maselbas jmaselbas at zdiv.net
Fri Mar 14 08:14:41 PDT 2025


the `window` variable doesn't seems to be used outside of this file,
thus doesn't need to be exported and can be made static.

Signed-off-by: Jules Maselbas <jmaselbas at zdiv.net>
---
 arch/sandbox/os/sdl.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/sandbox/os/sdl.c b/arch/sandbox/os/sdl.c
index 0c31b6ce87..e4c6f1a587 100644
--- a/arch/sandbox/os/sdl.c
+++ b/arch/sandbox/os/sdl.c
@@ -18,7 +18,7 @@ static void sdl_perror(const char *what)
 
 static struct sdl_fb_info info;
 static SDL_atomic_t shutdown;
-SDL_Window *window;
+static SDL_Window *window;
 
 static void handle_sdl_events(void)
 {
-- 
2.48.1




More information about the barebox mailing list