aboutsummaryrefslogtreecommitdiff
path: root/libmm-glib
diff options
context:
space:
mode:
authorLubomir Rintel <lkundrak@v3.sk>2022-12-13 18:20:15 +0100
committerAleksander Morgado <aleksander@aleksander.es>2023-01-18 10:51:40 +0000
commit1af34e1746e9736ea725502562ca21f7e12f3b34 (patch)
tree526dfa32743864f796fbca1e4083a6c01d8bfcc0 /libmm-glib
parent6179667d3d1aaba19e7a0fb1189a253d12f7cda8 (diff)
libmm-glib,common-helpers: undeprecate g_date_time_format_iso8601()
Avoid a deprecation warning with too new glib: ../libmm-glib/mm-common-helpers.c: In function ‘date_time_format_iso8601’: ../libmm-glib/mm-common-helpers.c:1729:5: warning: ‘g_date_time_format_iso8601’ is deprecated: Not available before 2.62 [-Wdeprecated-declarations] 1729 | return g_date_time_format_iso8601 (dt); | ^~~~~~ This call site is protected by version guards and provides an alternative implementation in date_time_format_iso8601().
Diffstat (limited to 'libmm-glib')
-rw-r--r--libmm-glib/mm-common-helpers.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libmm-glib/mm-common-helpers.c b/libmm-glib/mm-common-helpers.c
index b57cb205..ac75abcf 100644
--- a/libmm-glib/mm-common-helpers.c
+++ b/libmm-glib/mm-common-helpers.c
@@ -1726,7 +1726,9 @@ static gchar *
date_time_format_iso8601 (GDateTime *dt)
{
#if GLIB_CHECK_VERSION (2, 62, 0)
+ G_GNUC_BEGIN_IGNORE_DEPRECATIONS
return g_date_time_format_iso8601 (dt);
+ G_GNUC_END_IGNORE_DEPRECATIONS
#else
GString *outstr = NULL;
g_autofree gchar *main_date = NULL;