tests: Add a test to avoid a set-but-unused variable

Spotted by `scan-build`.

Signed-off-by: Philip Withnall <pwithnall@endlessos.org>
This commit is contained in:
Philip Withnall 2020-11-23 16:43:55 +00:00
parent 6fcc4db228
commit eafc6b257c

View File

@ -2384,6 +2384,7 @@ test_adjust_time (void)
g_date_time_unref (dt);
i1 = g_time_zone_adjust_time (tz, G_TIME_TYPE_DAYLIGHT, &u2);
g_assert_cmpint (i1, >=, 0);
g_assert (u == u2);
g_time_zone_unref (tz);