diff options
author | Philip Withnall <pwithnall@endlessos.org> | 2020-11-23 16:43:55 +0000 |
---|---|---|
committer | Philip Withnall <pwithnall@endlessos.org> | 2020-11-24 09:21:45 +0000 |
commit | eafc6b257cadf4e4129d7011e6564f178ef704a3 (patch) | |
tree | 0f7f22c2bbc06052786eb1d42ba44275af2c1b49 | |
parent | 6fcc4db22806a679a5d40b7864abc47a535c3702 (diff) | |
download | glib-eafc6b257cadf4e4129d7011e6564f178ef704a3.tar.gz |
tests: Add a test to avoid a set-but-unused variable
Spotted by `scan-build`.
Signed-off-by: Philip Withnall <pwithnall@endlessos.org>
-rw-r--r-- | glib/tests/gdatetime.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/glib/tests/gdatetime.c b/glib/tests/gdatetime.c index 14d13db66..a25ae916f 100644 --- a/glib/tests/gdatetime.c +++ b/glib/tests/gdatetime.c @@ -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); |