mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-20 07:38:54 +02:00
Move pragmas out of function body
It seems that older gcc does not like pragmas inside functions.
This commit is contained in:
@@ -809,6 +809,8 @@ DllMain (HINSTANCE hinstDLL,
|
|||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#pragma GCC diagnostic push
|
||||||
|
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
|
||||||
void
|
void
|
||||||
_g_io_modules_ensure_extension_points_registered (void)
|
_g_io_modules_ensure_extension_points_registered (void)
|
||||||
{
|
{
|
||||||
@@ -823,11 +825,8 @@ _g_io_modules_ensure_extension_points_registered (void)
|
|||||||
|
|
||||||
#ifdef G_OS_UNIX
|
#ifdef G_OS_UNIX
|
||||||
#if !GLIB_CHECK_VERSION (3, 0, 0)
|
#if !GLIB_CHECK_VERSION (3, 0, 0)
|
||||||
#pragma GCC diagnostic push
|
|
||||||
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
|
|
||||||
ep = g_io_extension_point_register (G_DESKTOP_APP_INFO_LOOKUP_EXTENSION_POINT_NAME);
|
ep = g_io_extension_point_register (G_DESKTOP_APP_INFO_LOOKUP_EXTENSION_POINT_NAME);
|
||||||
g_io_extension_point_set_required_type (ep, G_TYPE_DESKTOP_APP_INFO_LOOKUP);
|
g_io_extension_point_set_required_type (ep, G_TYPE_DESKTOP_APP_INFO_LOOKUP);
|
||||||
#pragma GCC diagnostic pop
|
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@@ -863,7 +862,8 @@ _g_io_modules_ensure_extension_points_registered (void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
G_UNLOCK (registered_extensions);
|
G_UNLOCK (registered_extensions);
|
||||||
}
|
}
|
||||||
|
#pragma GCC diagnostic pop
|
||||||
|
|
||||||
void
|
void
|
||||||
_g_io_modules_ensure_loaded (void)
|
_g_io_modules_ensure_loaded (void)
|
||||||
|
Reference in New Issue
Block a user