[epiphany] web-extension-main: Use a pragma to silence -Wmissing-prototype
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany] web-extension-main: Use a pragma to silence -Wmissing-prototype
- Date: Sat, 23 Jan 2016 18:07:54 +0000 (UTC)
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]