[epiphany/gnome-3-38] Silence deprecation warnings



commit ae79d02bbf64320e32677004a9eabb65c4dcb443
Author: Michael Catanzaro <mcatanzaro gnome org>
Date:   Fri Mar 12 13:33:38 2021 -0600

    Silence deprecation warnings
    
    Our CI uses -Werror and so is failing on the stable branch. These
    function calls are already removed on master.

 embed/ephy-embed-shell.c       | 3 +++
 lib/ephy-permissions-manager.c | 3 +++
 2 files changed, 6 insertions(+)
---
diff --git a/embed/ephy-embed-shell.c b/embed/ephy-embed-shell.c
index 8abcbcea3..504cb2742 100644
--- a/embed/ephy-embed-shell.c
+++ b/embed/ephy-embed-shell.c
@@ -903,8 +903,11 @@ ephy_embed_shell_startup (GApplication *application)
     favicon_db_path = g_build_filename (ephy_cache_dir (), "icondatabase", NULL);
     webkit_web_context_set_favicon_database_directory (priv->web_context, favicon_db_path);
 
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
     /* Do not ignore TLS errors. */
     webkit_web_context_set_tls_errors_policy (priv->web_context, WEBKIT_TLS_ERRORS_POLICY_FAIL);
+#pragma GCC diagnostic pop
   }
 
   /* about: URIs handler */
diff --git a/lib/ephy-permissions-manager.c b/lib/ephy-permissions-manager.c
index d7c8be82e..be48b9c26 100644
--- a/lib/ephy-permissions-manager.c
+++ b/lib/ephy-permissions-manager.c
@@ -191,10 +191,13 @@ static gint
 webkit_security_origin_compare (WebKitSecurityOrigin *a,
                                 WebKitSecurityOrigin *b)
 {
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
   if (webkit_security_origin_is_opaque (a))
     return -1;
   if (webkit_security_origin_is_opaque (b))
     return 1;
+#pragma GCC diagnostic pop
 
   return g_strcmp0 (webkit_security_origin_get_protocol (a), webkit_security_origin_get_protocol (b)) ||
          g_strcmp0 (webkit_security_origin_get_host (a), webkit_security_origin_get_host (b)) ||


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