Inhibit unused variable warning in NSTRACE_WHEN (bug#80096)

* src/nsterm.h (NSTRACE_WHEN): Mark
'nstrace_saved_enabled_global' as unused.
This commit is contained in:
Stéphane Marks 2025-12-29 12:16:50 -05:00 committed by Alan Third
parent 785059a1f7
commit 1644463e5b

View file

@ -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; } \