Skip to content

Commit

Permalink
Fix warning for obsolete g_type_init
Browse files Browse the repository at this point in the history
Signed-off-by: Philippe De Swert <philippe.deswert@jollamobile.com>
  • Loading branch information
philippedeswert committed Sep 10, 2013
1 parent 3973c59 commit 756376f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/usb_moded.c
Expand Up @@ -597,7 +597,9 @@ int main(int argc, char* argv[])
freopen("/dev/null", "a", stdout);
freopen("/dev/null", "a", stderr);
}
#if !GLIB_CHECK_VERSION(2, 36, 0)
g_type_init();
#endif
#if !GLIB_CHECK_VERSION(2, 31, 0)
g_thread_init(NULL);
#endif
Expand Down

0 comments on commit 756376f

Please sign in to comment.