[epiphany] search-provider: Try harder to silence -Wformat-nonliteral



commit 3d622fbf4a01c22c9d12ff4b908b02c35bb7fd02
Author: Michael Catanzaro <mcatanzaro igalia com>
Date:   Fri Nov 20 16:19:24 2015 -0600

    search-provider: Try harder to silence -Wformat-nonliteral

 src/ephy-search-provider.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/src/ephy-search-provider.c b/src/ephy-search-provider.c
index 7371159..27cb8c1 100644
--- a/src/ephy-search-provider.c
+++ b/src/ephy-search-provider.c
@@ -290,8 +290,13 @@ launch_search (EphySearchProvider  *self,
 
   search_string = g_strjoinv (" ", terms);
   query_param = soup_form_encode ("q", search_string, NULL);
+
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Wformat-nonliteral"
+  /* Format string under control of user input... but gsettings is trusted input. */
   /* + 2 here is getting rid of 'q=' */
   effective_url = g_strdup_printf (url_search, query_param + 2);
+#pragma GCC diagnostic pop
 
   launch_uri (effective_url, timestamp);
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]