summaryrefslogtreecommitdiff
path: root/src/nautilus-canvas-container.c
diff options
context:
space:
mode:
authorBastien Nocera <hadess@hadess.net>2016-06-13 19:15:50 +0200
committerBastien Nocera <hadess@hadess.net>2016-06-14 10:18:59 +0200
commitadac0747b773d6b81aa1893de8b4239f94df5ee6 (patch)
tree448b21e59e776450808638c5a413b4c3824ee70c /src/nautilus-canvas-container.c
parentdadba55648543642311755b799ef32babe5f965d (diff)
downloadnautilus-adac0747b773d6b81aa1893de8b4239f94df5ee6.tar.gz
Fix "format not a string literal" warnings
With new GCC6. https://bugzilla.gnome.org/show_bug.cgi?id=767616
Diffstat (limited to 'src/nautilus-canvas-container.c')
-rw-r--r--src/nautilus-canvas-container.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/nautilus-canvas-container.c b/src/nautilus-canvas-container.c
index 3427a75de..3da17a0c6 100644
--- a/src/nautilus-canvas-container.c
+++ b/src/nautilus-canvas-container.c
@@ -5152,11 +5152,14 @@ get_text_ellipsis_limit_for_zoom (char **strs,
}
if (strs != NULL) {
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Wformat-nonliteral"
for (p = strs; *p != NULL; p++) {
if (sscanf (*p, str, limit)) {
success = TRUE;
}
}
+#pragma GCC diagnostic pop
}
g_free (str);