tests: Silence set-but-not-used warnings for variables in autoptr test

Clang decides that `p` and `p2` are set but not used. Try a bit harder
to trick it.

Signed-off-by: Philip Withnall <pwithnall@endlessos.org>
This commit is contained in:
Philip Withnall 2022-05-27 15:39:38 +01:00
parent 0e1b410779
commit 98df887b7f

View File

@ -20,6 +20,9 @@ test_autofree (void)
p = g_malloc (10);
p2 = g_malloc (42);
p[0] = 1;
p2[0] = 1;
if (TRUE)
{
g_autofree guint8 *buf = g_malloc (128);