mirror of
https://gitlab.freedesktop.org/upower/upower.git
synced 2026-05-08 14:48:01 +02:00
build: Fix -Wformat-y2k compilation errors
The strings are user visible strings, so this isn't a y2k problem.
This commit is contained in:
parent
71e3bb02f9
commit
4b03777c54
1 changed files with 3 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue