diff options
author | Scott Balneaves <[email protected]> | 2012-11-18 21:04:56 -0600 |
---|---|---|
committer | Scott Balneaves <[email protected]> | 2012-11-18 21:04:56 -0600 |
commit | 879bd3789e84f31d90cf1b46a2985c6e78685609 (patch) | |
tree | 31c1ebf3bda44cd1f8c5fb27de356caf3037567f /maximus/main.c | |
parent | 98be82c4742bf3a5be20d07d70b1a81beadda4f5 (diff) | |
download | mate-netbook-879bd3789e84f31d90cf1b46a2985c6e78685609.tar.bz2 mate-netbook-879bd3789e84f31d90cf1b46a2985c6e78685609.tar.xz |
Fix some warnings, and one deprecation on g_thread_init()
Diffstat (limited to 'maximus/main.c')
-rw-r--r-- | maximus/main.c | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/maximus/main.c b/maximus/main.c index 6bf4e1b..8083f48 100644 --- a/maximus/main.c +++ b/maximus/main.c @@ -30,6 +30,12 @@ #include "maximus-app.h" +#ifdef __GNUC__ +#define UNUSED_VARIABLE __attribute__ ((unused)) +#else +#define UNUSED_VARIABLE +#endif + static gboolean version = FALSE; gboolean no_maximize = FALSE; @@ -55,10 +61,15 @@ GOptionEntry entries[] = gint main (gint argc, gchar *argv[]) { UniqueApp *unique; - MaximusApp *app; + MaximusApp UNUSED_VARIABLE *app; GOptionContext *context; +#if GLIB_CHECK_VERSION (2, 32, 0) + /* g_thread_init (NULL); */ +#else g_thread_init (NULL); +#endif + g_set_application_name ("Maximus"); gtk_init (&argc, &argv); |