mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-07-17 23:47:52 +02:00
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:
@@ -2384,6 +2384,7 @@ test_adjust_time (void)
|
|||||||
g_date_time_unref (dt);
|
g_date_time_unref (dt);
|
||||||
|
|
||||||
i1 = g_time_zone_adjust_time (tz, G_TIME_TYPE_DAYLIGHT, &u2);
|
i1 = g_time_zone_adjust_time (tz, G_TIME_TYPE_DAYLIGHT, &u2);
|
||||||
|
g_assert_cmpint (i1, >=, 0);
|
||||||
g_assert (u == u2);
|
g_assert (u == u2);
|
||||||
|
|
||||||
g_time_zone_unref (tz);
|
g_time_zone_unref (tz);
|
||||||
|
Reference in New Issue
Block a user