From 14014045fcf6942085afa297e8fe74993461e11b Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Tue, 14 Oct 2025 09:37:00 +1100 Subject: [PATCH] Cleanup: quiet unused argument warning when building without WAYLAND --- intern/ghost/intern/GHOST_ISystem.cc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/intern/ghost/intern/GHOST_ISystem.cc b/intern/ghost/intern/GHOST_ISystem.cc index 81a340335e3..337480e7419 100644 --- a/intern/ghost/intern/GHOST_ISystem.cc +++ b/intern/ghost/intern/GHOST_ISystem.cc @@ -55,13 +55,14 @@ GHOST_TSuccess GHOST_ISystem::createSystem(bool verbose, [[maybe_unused]] bool b GHOST_TSuccess success; if (!system_) { - const bool use_window_frame = GHOST_ISystem::getUseWindowFrame(); - #if defined(WITH_HEADLESS) /* Pass. */ #elif defined(WITH_GHOST_WAYLAND) # if defined(WITH_GHOST_WAYLAND_DYNLOAD) - const bool has_wayland_libraries = ghost_wl_dynload_libraries_init(use_window_frame); + /* Even if other systems support `--no-window-frame`, it's likely only WAYLAND + * needs to configure this when creating the system (based on LIBDECOR usage). */ + const bool has_wayland_libraries = ghost_wl_dynload_libraries_init( + GHOST_ISystem::getUseWindowFrame()); # else const bool has_wayland_libraries = true; # endif