From 1644463e5bbd9a2d02c22acd769c2b7286e5f781 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Marks?= Date: Mon, 29 Dec 2025 12:16:50 -0500 Subject: [PATCH] Inhibit unused variable warning in NSTRACE_WHEN (bug#80096) * src/nsterm.h (NSTRACE_WHEN): Mark 'nstrace_saved_enabled_global' as unused. --- src/nsterm.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nsterm.h b/src/nsterm.h index e03add9c3f8..7c1ee4cf535 100644 --- a/src/nsterm.h +++ b/src/nsterm.h @@ -279,7 +279,7 @@ char const * nstrace_fullscreen_type_name (int); #define NSTRACE_WHEN(cond, ...) \ __attribute__ ((cleanup (nstrace_restore_global_trace_state))) \ - int nstrace_saved_enabled_global = nstrace_enabled_global; \ + int __attribute__ ((unused)) nstrace_saved_enabled_global = nstrace_enabled_global;\ __attribute__ ((cleanup (nstrace_leave))) \ int nstrace_enabled = nstrace_enabled_global && (cond); \ if (nstrace_enabled) { ++nstrace_depth; } \