Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Use G_GNUC_BEGIN/END_IGNORE_DEPRECATIONS macros
  • Loading branch information
monich committed Feb 20, 2014
1 parent e90844b commit 9f5f678
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions mms-lib/src/mms_lib_util.c
Expand Up @@ -38,15 +38,11 @@ mms_lib_error_quark()
void
mms_lib_init(void)
{
#ifdef __GNUC__
# pragma GCC diagnostic ignored "-Wdeprecated-declarations"
#endif
/* g_type_init has been deprecated since version 2.36
* the type system is initialised automagically since then */
G_GNUC_BEGIN_IGNORE_DEPRECATIONS;
g_type_init();
#ifdef __GNUC__
# pragma GCC diagnostic pop
#endif
G_GNUC_END_IGNORE_DEPRECATIONS;
}

/**
Expand Down

0 comments on commit 9f5f678

Please sign in to comment.