diff options
author | Stefano Karapetsas <[email protected]> | 2012-11-19 02:04:18 -0800 |
---|---|---|
committer | Stefano Karapetsas <[email protected]> | 2012-11-19 02:04:18 -0800 |
commit | 4f79502e2c626d037b380f451c16ce1135ea3623 (patch) | |
tree | 31c1ebf3bda44cd1f8c5fb27de356caf3037567f /maximus/main.c | |
parent | 98be82c4742bf3a5be20d07d70b1a81beadda4f5 (diff) | |
parent | 879bd3789e84f31d90cf1b46a2985c6e78685609 (diff) | |
download | mate-netbook-4f79502e2c626d037b380f451c16ce1135ea3623.tar.bz2 mate-netbook-4f79502e2c626d037b380f451c16ce1135ea3623.tar.xz |
Merge pull request #1 from sbalneav/mastermate-netbook-1.5.0
Fixed deprecation, compile error & warnings.
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); |