From 26b6bece9559e030c38885233d0ab61b3f4099d6 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Wed, 27 Mar 2024 00:38:02 +0100 Subject: [PATCH] Fix a -Wunused-variable --- libs/ardour/globals.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libs/ardour/globals.cc b/libs/ardour/globals.cc index 9dcefe4107..65d5e6ea76 100644 --- a/libs/ardour/globals.cc +++ b/libs/ardour/globals.cc @@ -167,8 +167,10 @@ float ARDOUR::ui_scale_factor = 1.0; static bool have_old_configuration_files = false; static bool running_from_gui = false; -static int cpu_dma_latency_fd = -1; +#if !(defined PLATFORM_WINDOWS || defined __APPLE__) +static int cpu_dma_latency_fd = -1; +#endif namespace ARDOUR { extern void setup_enum_writer ();