summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorraveit65 <[email protected]>2017-04-13 14:56:36 +0200
committerraveit65 <[email protected]>2017-04-13 16:03:26 +0200
commit406866820ac2a1f8698e6926b37ead3490cabbf8 (patch)
tree74753574463de64e10603074d00b9afd1387d2cf
parentf4758b6286d2138d0a33737d6815536ca8069add (diff)
downloadmate-settings-daemon-406866820ac2a1f8698e6926b37ead3490cabbf8.tar.bz2
mate-settings-daemon-406866820ac2a1f8698e6926b37ead3490cabbf8.tar.xz
datetime: fix a Wunused-but-set-variable warning
https://bugzilla.gnome.org/show_bug.cgi?id=642803 taken from: https://git.gnome.org/browse/gnome-settings-daemon/commit/?id=4546de7
-rw-r--r--plugins/datetime/system-timezone.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/plugins/datetime/system-timezone.c b/plugins/datetime/system-timezone.c
index acad071..1062334 100644
--- a/plugins/datetime/system-timezone.c
+++ b/plugins/datetime/system-timezone.c
@@ -860,7 +860,6 @@ system_timezone_is_zone_file_valid (const char *zone_file,
{
GError *our_error;
GIOChannel *channel;
- GIOStatus status;
char buffer[strlen (TZ_MAGIC)];
gsize read;
@@ -887,9 +886,9 @@ system_timezone_is_zone_file_valid (const char *zone_file,
our_error = NULL;
channel = g_io_channel_new_file (zone_file, "r", &our_error);
if (!our_error)
- status = g_io_channel_read_chars (channel,
- buffer, strlen (TZ_MAGIC),
- &read, &our_error);
+ g_io_channel_read_chars (channel,
+ buffer, strlen (TZ_MAGIC),
+ &read, &our_error);
if (channel)
g_io_channel_unref (channel);