mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-07-21 17:37:53 +02:00
glib, gobject: Annotate deprecated types and enumerators
Use the new `GLIB_DEPRECATED_{TYPE,ENUMERATOR}*` macros to annotate types and enumerators as deprecated, rather than using `G_DISABLE_DEPRECATED`. Signed-off-by: Philip Withnall <withnall@endlessm.com>
This commit is contained in:
@@ -218,6 +218,7 @@ _glib_get_dll_directory (void)
|
||||
*
|
||||
* Deprecated:2.32: It is best to avoid g_atexit().
|
||||
*/
|
||||
G_GNUC_BEGIN_IGNORE_DEPRECATIONS
|
||||
void
|
||||
g_atexit (GVoidFunc func)
|
||||
{
|
||||
@@ -232,6 +233,7 @@ g_atexit (GVoidFunc func)
|
||||
g_strerror (errsv));
|
||||
}
|
||||
}
|
||||
G_GNUC_END_IGNORE_DEPRECATIONS
|
||||
|
||||
/* Based on execvp() from GNU Libc.
|
||||
* Some of this code is cut-and-pasted into gspawn.c
|
||||
|
Reference in New Issue
Block a user