[gnome-commander] Fixes -Werror=format-nonliteral
- From: Uwe Scholz <uwescholz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-commander] Fixes -Werror=format-nonliteral
- Date: Tue, 11 Apr 2017 20:26:33 +0000 (UTC)
commit 5ecda6f9b08c1856b3c196d34e64f82377f3dd38
Author: Uwe Scholz <uwescholz src gnome org>
Date: Sat Feb 25 22:58:47 2017 +0100
Fixes -Werror=format-nonliteral
src/gnome-cmd-con.h | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/gnome-cmd-con.h b/src/gnome-cmd-con.h
index 5e0b2ff..f3d33fe 100644
--- a/src/gnome-cmd-con.h
+++ b/src/gnome-cmd-con.h
@@ -373,7 +373,10 @@ inline gchar *gnome_cmd_con_get_free_space (GnomeCmdCon *con, GnomeCmdDir *dir,
if (!free_space)
return _("Unknown disk usage");
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Wformat-nonliteral"
gchar *retval = g_strdup_printf (fmt, free_space);
+#pragma GCC diagnostic pop
g_free (free_space);
return retval;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]