summaryrefslogtreecommitdiff
path: root/maximus/maximus-bind.c
diff options
context:
space:
mode:
authorScott Balneaves <[email protected]>2012-11-18 21:04:56 -0600
committerScott Balneaves <[email protected]>2012-11-18 21:04:56 -0600
commit879bd3789e84f31d90cf1b46a2985c6e78685609 (patch)
tree31c1ebf3bda44cd1f8c5fb27de356caf3037567f /maximus/maximus-bind.c
parent98be82c4742bf3a5be20d07d70b1a81beadda4f5 (diff)
downloadmate-netbook-879bd3789e84f31d90cf1b46a2985c6e78685609.tar.bz2
mate-netbook-879bd3789e84f31d90cf1b46a2985c6e78685609.tar.xz
Fix some warnings, and one deprecation on g_thread_init()
Diffstat (limited to 'maximus/maximus-bind.c')
-rw-r--r--maximus/maximus-bind.c16
1 files changed, 11 insertions, 5 deletions
diff --git a/maximus/maximus-bind.c b/maximus/maximus-bind.c
index 69de949..b58cbc1 100644
--- a/maximus/maximus-bind.c
+++ b/maximus/maximus-bind.c
@@ -58,6 +58,12 @@ G_DEFINE_TYPE (MaximusBind, maximus_bind, G_TYPE_OBJECT);
#define SYSRULESDIR SYSCONFDIR"/maximus"
+#ifdef __GNUC__
+#define UNUSED_VARIABLE __attribute__ ((unused))
+#else
+#define UNUSED_VARIABLE
+#endif
+
struct _MaximusBindPrivate
{
FakeKey *fk;
@@ -131,7 +137,7 @@ static gboolean
real_fullscreen (MaximusBind *bind)
{
MaximusBindPrivate *priv;
- GdkDisplay *display;
+ GdkDisplay UNUSED_VARIABLE *display;
MatewnckWindow *active;
const gchar *keystroke;
@@ -194,7 +200,7 @@ real_fullscreen (MaximusBind *bind)
static void
fullscreen (MaximusBind *bind, MatewnckWindow *window)
{
- MaximusBindPrivate *priv;
+ MaximusBindPrivate UNUSED_VARIABLE *priv;
priv = bind->priv;
@@ -205,7 +211,7 @@ static gboolean
real_unfullscreen (MaximusBind *bind)
{
MaximusBindPrivate *priv;
- GdkDisplay *display;
+ GdkDisplay UNUSED_VARIABLE *display;
MatewnckWindow *active;
const gchar *keystroke;
@@ -267,7 +273,7 @@ real_unfullscreen (MaximusBind *bind)
static void
unfullscreen (MaximusBind *bind, MatewnckWindow *window)
{
- MaximusBindPrivate *priv;
+ MaximusBindPrivate UNUSED_VARIABLE *priv;
priv = bind->priv;
@@ -390,7 +396,7 @@ create_rule (MaximusBind *bind, const gchar *filename)
static void
load_rules (MaximusBind *bind, const gchar *path)
{
- MaximusBindPrivate *priv;
+ MaximusBindPrivate UNUSED_VARIABLE *priv;
GDir *dir;
const gchar *name;