mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-13 15:56:23 +01: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:
parent
6fcc4db228
commit
eafc6b257c
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user