SecBSD's official ports repository
This commit is contained in:
commit
2c0afcbbf3
64331 changed files with 5339189 additions and 0 deletions
18
sysutils/upower/patches/patch-libupower-glib_up-device_c
Normal file
18
sysutils/upower/patches/patch-libupower-glib_up-device_c
Normal file
|
@ -0,0 +1,18 @@
|
|||
Fix with base gcc:
|
||||
|
||||
up-device.c:277: error: #pragma GCC diagnostic not allowed inside functions
|
||||
|
||||
Index: libupower-glib/up-device.c
|
||||
--- libupower-glib/up-device.c.orig
|
||||
+++ libupower-glib/up-device.c
|
||||
@@ -280,10 +280,7 @@ 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
Add a link
Reference in a new issue