From bc9c31f785ccb36b36ba1a53db1737d5cc7987c9 Mon Sep 17 00:00:00 2001 From: Simon McVittie <smcv@collabora.com> Date: Mon, 11 Nov 2019 18:34:48 +0000 Subject: [PATCH] _GLNX_TEST_SCOPED_TEMP_DIR: Mark variable as G_GNUC_UNUSED Otherwise, clang diagnoses it as unused. It is - deliberately - only allocated and cleaned up, with no other use. Signed-off-by: Simon McVittie <smcv@collabora.com> --- tests/libglnx-testlib.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/libglnx-testlib.h b/tests/libglnx-testlib.h index 0d3a07511..d45ba8602 100644 --- a/tests/libglnx-testlib.h +++ b/tests/libglnx-testlib.h @@ -45,4 +45,4 @@ void _glnx_test_auto_temp_dir_leave (_GLnxTestAutoTempDir *dir); G_DEFINE_AUTOPTR_CLEANUP_FUNC(_GLnxTestAutoTempDir, _glnx_test_auto_temp_dir_leave); #define _GLNX_TEST_SCOPED_TEMP_DIR \ - g_autoptr(_GLnxTestAutoTempDir) temp_dir = _glnx_test_auto_temp_dir_enter () + G_GNUC_UNUSED g_autoptr(_GLnxTestAutoTempDir) temp_dir = _glnx_test_auto_temp_dir_enter () -- GitLab