diff options
author | Simon McVittie <smcv@collabora.com> | 2019-11-11 18:34:48 +0000 |
---|---|---|
committer | Simon McVittie <smcv@collabora.com> | 2019-11-11 18:37:38 +0000 |
commit | bc9c31f785ccb36b36ba1a53db1737d5cc7987c9 (patch) | |
tree | 21f283faa6e36e54ccde3093104514e59b118467 | |
parent | 5f3d352aa40dbd7fc8f716694c9f4b0494dda6fd (diff) | |
download | libglnx-bc9c31f785ccb36b36ba1a53db1737d5cc7987c9.tar.gz |
_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>
-rw-r--r-- | tests/libglnx-testlib.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/libglnx-testlib.h b/tests/libglnx-testlib.h index 0d3a075..d45ba86 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 () |