summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJannis Pohlmann <jannis@xfce.org>2010-12-06 10:31:48 +0100
committerJannis Pohlmann <jannis@xfce.org>2010-12-06 10:31:48 +0100
commit15d09e647bba5ee2999873e13025143809e712fc (patch)
treecbf8519781f0ade749185b7c84b30c0bfe5fa91f
parent9d4a68b64fb8066c7211f4f310f8fe38e17ff57b (diff)
downloadthunar-15d09e647bba5ee2999873e13025143809e712fc.tar.gz
Fix unused variable warning when building with GLib < 2.20.
-rw-r--r--NEWS1
-rw-r--r--thunar/thunar-gio-extensions.c2
2 files changed, 3 insertions, 0 deletions
diff --git a/NEWS b/NEWS
index d177f867..9024237f 100644
--- a/NEWS
+++ b/NEWS
@@ -1,5 +1,6 @@
1.1.x
=====
+- Fix unused variable warning when building with GLib < 2.20.
1.1.5
=====
diff --git a/thunar/thunar-gio-extensions.c b/thunar/thunar-gio-extensions.c
index 58360eb7..6712ab0b 100644
--- a/thunar/thunar-gio-extensions.c
+++ b/thunar/thunar-gio-extensions.c
@@ -544,7 +544,9 @@ thunar_g_volume_is_present (GVolume *volume)
gboolean has_media = FALSE;
gboolean is_shadowed = FALSE;
GDrive *drive;
+#if GLIB_CHECK_VERSION (2, 20, 0)
GMount *mount;
+#endif
_thunar_return_val_if_fail (G_IS_VOLUME (volume), FALSE);