[gjs: 5/9] maint: Remove workaround for GLib warning
- From: Philip Chimento <pchimento src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gjs: 5/9] maint: Remove workaround for GLib warning
- Date: Thu, 6 Aug 2020 01:27:25 +0000 (UTC)
commit 94afcc5950340ca0cdc84118410a49adc9da1090
Author: Philip Chimento <philip chimento gmail com>
Date: Sat Aug 1 14:12:48 2020 -0700
maint: Remove workaround for GLib warning
This is no longer needed with newer versions of GLib.
gjs/context.cpp | 8 --------
gjs/coverage.cpp | 7 -------
libgjs-private/gjs-gdbus-wrapper.c | 8 --------
3 files changed, 23 deletions(-)
---
diff --git a/gjs/context.cpp b/gjs/context.cpp
index 57ad878b..1f7afb2e 100644
--- a/gjs/context.cpp
+++ b/gjs/context.cpp
@@ -118,15 +118,7 @@ struct _GjsContextClass {
GObjectClass parent;
};
-/* Temporary workaround for https://bugzilla.gnome.org/show_bug.cgi?id=793175 */
-#if __GNUC__ >= 8
-_Pragma("GCC diagnostic push")
-_Pragma("GCC diagnostic ignored \"-Wcast-function-type\"")
-#endif
G_DEFINE_TYPE_WITH_PRIVATE(GjsContext, gjs_context, G_TYPE_OBJECT);
-#if __GNUC__ >= 8
-_Pragma("GCC diagnostic pop")
-#endif
GjsContextPrivate* GjsContextPrivate::from_object(GObject* js_context) {
g_return_val_if_fail(GJS_IS_CONTEXT(js_context), nullptr);
diff --git a/gjs/coverage.cpp b/gjs/coverage.cpp
index 12395078..09d1c51e 100644
--- a/gjs/coverage.cpp
+++ b/gjs/coverage.cpp
@@ -61,16 +61,9 @@ typedef struct {
GFile *output_dir;
} GjsCoveragePrivate;
-#if __GNUC__ >= 8
-_Pragma("GCC diagnostic push")
-_Pragma("GCC diagnostic ignored \"-Wcast-function-type\"")
-#endif
G_DEFINE_TYPE_WITH_PRIVATE(GjsCoverage,
gjs_coverage,
G_TYPE_OBJECT)
-#if __GNUC__ >= 8
-_Pragma("GCC diagnostic pop")
-#endif
enum {
PROP_0,
diff --git a/libgjs-private/gjs-gdbus-wrapper.c b/libgjs-private/gjs-gdbus-wrapper.c
index cffc1b38..d534d9b4 100644
--- a/libgjs-private/gjs-gdbus-wrapper.c
+++ b/libgjs-private/gjs-gdbus-wrapper.c
@@ -33,16 +33,8 @@ struct _GjsDBusImplementationPrivate {
guint idle_id;
};
-/* Temporary workaround for https://bugzilla.gnome.org/show_bug.cgi?id=793175 */
-#if __GNUC__ >= 8
-_Pragma("GCC diagnostic push")
-_Pragma("GCC diagnostic ignored \"-Wcast-function-type\"")
-#endif
G_DEFINE_TYPE_WITH_PRIVATE(GjsDBusImplementation, gjs_dbus_implementation,
G_TYPE_DBUS_INTERFACE_SKELETON);
-#if __GNUC__ >= 8
-_Pragma("GCC diagnostic pop")
-#endif
static gboolean gjs_dbus_implementation_check_interface(
GjsDBusImplementation* self, GDBusConnection* connection,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]