g_task_set_name() should not use g_task_set_static_name() unless permitted by GLIB_VERSION_MAX_ALLOWED
Epiphany CI is failing since !2869 (merged) with GLIB_VERSION_MIN_REQUIRED
and GLIB_VERSION_MAX_ALLOWED
both set to GLIB_VERSION_2_70
:
../lib/sync/ephy-password-import.c: In function ‘ephy_password_import_from_chrome_async’:
4021../lib/sync/ephy-password-import.c:263:3: error: ‘g_task_set_static_name’ is deprecated: Not available before 2.76 [-Werror=deprecated-declarations]
4022 263 | g_task_set_source_tag (task, ephy_password_import_from_chrome_async);
4023 | ^~~~~~~~~~~~~~~~~~~~~
4024In file included from /usr/include/glib-2.0/gio/gio.h:157,
4025 from /usr/include/libsecret-1/libsecret/secret-collection.h:22,
4026 from /usr/include/libsecret-1/libsecret/secret.h:23,
4027 from ../lib/sync/ephy-password-manager.h:27,
4028 from ../lib/sync/ephy-password-import.h:25,
4029 from ../lib/sync/ephy-password-import.c:23:
4030/usr/include/glib-2.0/gio/gtask.h:83:15: note: declared here
4031 83 | void g_task_set_static_name (GTask *task,
4032 | ^~~~~~~~~~~~~~~~~~~~~~
4033cc1: all warnings being treated as errors
gtask.h checks GLIB_VERSION_MIN_REQUIRED
before using the new API from g_task_set_name(), but not for g_task_set_source_tag().