From 3be9f89ad371f9089235dde3fb7de1654debc059 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Fri, 15 Aug 2025 18:55:52 +1000 Subject: [PATCH] Cleanup: quiet unused warning & correct typo --- intern/ghost/intern/GHOST_SystemHeadless.hh | 2 ++ intern/ghost/intern/GHOST_WindowWayland.cc | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/intern/ghost/intern/GHOST_SystemHeadless.hh b/intern/ghost/intern/GHOST_SystemHeadless.hh index c29c1f69725..ebd03625e88 100644 --- a/intern/ghost/intern/GHOST_SystemHeadless.hh +++ b/intern/ghost/intern/GHOST_SystemHeadless.hh @@ -113,6 +113,8 @@ class GHOST_SystemHeadless : public GHOST_System { { const GHOST_ContextParams context_params_offscreen = GHOST_CONTEXT_PARAMS_FROM_GPU_SETTINGS_OFFSCREEN(gpuSettings); + /* This may not be used depending on the build configuration. */ + (void)context_params_offscreen; switch (gpuSettings.context_type) { #ifdef WITH_VULKAN_BACKEND diff --git a/intern/ghost/intern/GHOST_WindowWayland.cc b/intern/ghost/intern/GHOST_WindowWayland.cc index 49234979a4c..1d124e52389 100644 --- a/intern/ghost/intern/GHOST_WindowWayland.cc +++ b/intern/ghost/intern/GHOST_WindowWayland.cc @@ -2090,7 +2090,7 @@ GHOST_WindowWayland::GHOST_WindowWayland(GHOST_SystemWayland *system, if (type == GHOST_kDrawingContextTypeOpenGL) { /* NOTE(@ideasman42): Set the swap interval to 0 (disable VSync) to prevent blocking. * This was reported for SDL in 2021 so it may be good to revisit this decision - * at some point since forcing the VSync setting seems a heavy-handed, + * at some point since forcing the VSync setting seems heavy-handed, * especially if the issue gets resolved up-stream. * * For reference: https://github.com/libsdl-org/SDL/issues/4335