From b236764ef0744d85a423b67bf9c434912d3d756f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ole=20Andr=C3=A9=20Vadla=20Ravn=C3=A5s?= Date: Mon, 7 Nov 2022 23:18:36 +0100 Subject: [PATCH] _frida: Fix assigned-but-not-used warnings When building without assertions. --- src/_frida.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/_frida.c b/src/_frida.c index 7c91e3e..1a6d4d7 100644 --- a/src/_frida.c +++ b/src/_frida.c @@ -955,7 +955,7 @@ PyGObject_steal_handle (PyGObject * self) for (entry = self->signal_closures; entry != NULL; entry = entry->next) { PyGObjectSignalClosure * closure = entry->data; - guint num_matches; + G_GNUC_UNUSED guint num_matches; num_matches = g_signal_handlers_disconnect_matched (handle, G_SIGNAL_MATCH_CLOSURE, closure->signal_id, 0, &closure->parent, NULL, NULL); g_assert (num_matches == 1); @@ -1017,7 +1017,7 @@ PyGObject_off (PyGObject * self, PyObject * args) PyObject * callback; GSList * entry; GClosure * closure; - guint num_matches; + G_GNUC_UNUSED guint num_matches; if (!PyGObject_parse_signal_method_args (args, G_OBJECT_TYPE (self->handle), &signal_id, &callback)) return NULL;