diff options
author | Bastien Nocera <hadess@hadess.net> | 2022-02-11 10:35:50 +0100 |
---|---|---|
committer | Bastien Nocera <hadess@hadess.net> | 2022-02-11 10:35:50 +0100 |
commit | c6c1c51aefeac28499da9fe5cec4af2278ed1564 (patch) | |
tree | 52d91ed674a40455cc248ab7b446ea3399538116 | |
parent | 7a5989995993556cdce4a72c6986ec246339a683 (diff) | |
download | totem-pl-parser-c6c1c51aefeac28499da9fe5cec4af2278ed1564.tar.gz |
podcast: Fix deprecation warnings
../../../../Projects/jhbuild/totem-pl-parser/plparse/totem-pl-parser-decode-date.c: In function ‘get_tzone’:
../../../../Projects/jhbuild/totem-pl-parser/plparse/totem-pl-parser-decode-date.c:322:25: warning: ‘g_time_zone_new’ is deprecated: Use 'g_time_zone_new_identifier' instead [-Wdeprecated-declarations]
322 | return g_time_zone_new (tzone);
| ^~~~~~
In file included from /usr/include/glib-2.0/glib/gdatetime.h:31,
from /usr/include/glib-2.0/glib/gbookmarkfile.h:26,
from /usr/include/glib-2.0/glib.h:37,
from ../../../../Projects/jhbuild/totem-pl-parser/plparse/totem-pl-parser-decode-date.h:20,
from ../../../../Projects/jhbuild/totem-pl-parser/plparse/totem-pl-parser-decode-date.c:24:
/usr/include/glib-2.0/glib/gtimezone.h:57:25: note: declared here
57 | GTimeZone * g_time_zone_new (const gchar *identifier);
| ^~~~~~~~~~~~~~~
../../../../Projects/jhbuild/totem-pl-parser/plparse/totem-pl-parser-decode-date.c:341:25: warning: ‘g_time_zone_new’ is deprecated: Use 'g_time_zone_new_identifier' instead [-Wdeprecated-declarations]
341 | return g_time_zone_new (tzone);
| ^~~~~~
In file included from /usr/include/glib-2.0/glib/gdatetime.h:31,
from /usr/include/glib-2.0/glib/gbookmarkfile.h:26,
from /usr/include/glib-2.0/glib.h:37,
from ../../../../Projects/jhbuild/totem-pl-parser/plparse/totem-pl-parser-decode-date.h:20,
from ../../../../Projects/jhbuild/totem-pl-parser/plparse/totem-pl-parser-decode-date.c:24:
/usr/include/glib-2.0/glib/gtimezone.h:57:25: note: declared here
57 | GTimeZone * g_time_zone_new (const gchar *identifier);
| ^~~~~~~~~~~~~~~
-rw-r--r-- | plparse/totem-pl-parser-decode-date.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plparse/totem-pl-parser-decode-date.c b/plparse/totem-pl-parser-decode-date.c index 0111ffb..3441e59 100644 --- a/plparse/totem-pl-parser-decode-date.c +++ b/plparse/totem-pl-parser-decode-date.c @@ -319,7 +319,7 @@ get_tzone (date_token **token) memcpy (tzone, inptr, len); tzone[len] = '\0'; - return g_time_zone_new (tzone); + return g_time_zone_new_identifier (tzone); } if (*inptr == '(') { @@ -338,7 +338,7 @@ get_tzone (date_token **token) snprintf (tzone, 6, "%+05d", tz_offsets[t].offset); - return g_time_zone_new (tzone); + return g_time_zone_new_identifier (tzone); } } |