diff options
author | Bastien Nocera <hadess@hadess.net> | 2016-06-13 19:15:50 +0200 |
---|---|---|
committer | Bastien Nocera <hadess@hadess.net> | 2016-06-14 10:18:59 +0200 |
commit | adac0747b773d6b81aa1893de8b4239f94df5ee6 (patch) | |
tree | 448b21e59e776450808638c5a413b4c3824ee70c /src/nautilus-ui-utilities.c | |
parent | dadba55648543642311755b799ef32babe5f965d (diff) | |
download | nautilus-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-ui-utilities.c')
-rw-r--r-- | src/nautilus-ui-utilities.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/nautilus-ui-utilities.c b/src/nautilus-ui-utilities.c index c0eaab40b..67acdf580 100644 --- a/src/nautilus-ui-utilities.c +++ b/src/nautilus-ui-utilities.c @@ -425,7 +425,10 @@ get_text_for_date_range (GPtrArray *date_range) normalized = days / 365; } +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wformat-nonliteral" label = g_strdup_printf (get_text_for_days_ago (days), normalized); +#pragma GCC diagnostic pop } g_free (formatted_date); |