[epiphany] web-extension-main: Use a pragma to silence -Wmissing-prototype



commit e6369581944c85815d75972edd8f36391eb87314
Author: Michael Catanzaro <mcatanzaro igalia com>
Date:   Sat Jan 23 12:06:58 2016 -0600

    web-extension-main: Use a pragma to silence -Wmissing-prototype
    
    I like this better.

 embed/web-extension/ephy-web-extension-main.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/embed/web-extension/ephy-web-extension-main.c b/embed/web-extension/ephy-web-extension-main.c
index 8a2320b..a81d647 100644
--- a/embed/web-extension/ephy-web-extension-main.c
+++ b/embed/web-extension/ephy-web-extension-main.c
@@ -32,10 +32,8 @@ name_acquired_cb (GDBusConnection *connection,
   ephy_web_extension_dbus_register (extension, connection);
 }
 
-/* Placate -Wmissing-prototype */
-void
-webkit_web_extension_initialize_with_user_data (WebKitWebExtension *extension,
-                                                GVariant *user_data);
+#pragma gcc diagnostic push
+#pragma gcc diagnostic ignored "-Wmissing-prototype"
 
 G_MODULE_EXPORT void
 webkit_web_extension_initialize_with_user_data (WebKitWebExtension *extension,
@@ -76,3 +74,5 @@ ephy_web_extension_shutdown (void)
 {
   g_object_unref (ephy_web_extension_get ());
 }
+
+#pragma gcc diagnostic pop


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