summaryrefslogtreecommitdiff
path: root/libupower-glib
diff options
context:
space:
mode:
authorBastien Nocera <hadess@hadess.net>2016-06-08 14:14:24 +0200
committerBastien Nocera <hadess@hadess.net>2016-06-08 14:14:24 +0200
commit4b03777c54010974a1a0447dbed2ce1476e455c4 (patch)
treeb5a76d48da1e7085490096648938b103a32ad30b /libupower-glib
parent71e3bb02f94f859ce66773d59513622ba5a8c2c6 (diff)
downloadupower-4b03777c54010974a1a0447dbed2ce1476e455c4.tar.gz
build: Fix -Wformat-y2k compilation errors
The strings are user visible strings, so this isn't a y2k problem.
Diffstat (limited to 'libupower-glib')
-rw-r--r--libupower-glib/up-device.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libupower-glib/up-device.c b/libupower-glib/up-device.c
index ec1b25b..7bce4e0 100644
--- a/libupower-glib/up-device.c
+++ b/libupower-glib/up-device.c
@@ -273,7 +273,10 @@ up_device_to_text (UpDevice *device)
/* get a human readable time */
t = (time_t) up_exported_device_get_update_time (priv->proxy_device);
time_tm = localtime (&t);
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Wformat-y2k"
strftime (time_buf, sizeof time_buf, "%c", time_tm);
+#pragma GCC diagnostic pop
string = g_string_new ("");
if (!is_display)