Skip to content

Commit b236764

Browse files
committed
_frida: Fix assigned-but-not-used warnings
When building without assertions.
1 parent 1ef5f90 commit b236764

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/_frida.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -955,7 +955,7 @@ PyGObject_steal_handle (PyGObject * self)
955955
for (entry = self->signal_closures; entry != NULL; entry = entry->next)
956956
{
957957
PyGObjectSignalClosure * closure = entry->data;
958-
guint num_matches;
958+
G_GNUC_UNUSED guint num_matches;
959959

960960
num_matches = g_signal_handlers_disconnect_matched (handle, G_SIGNAL_MATCH_CLOSURE, closure->signal_id, 0, &closure->parent, NULL, NULL);
961961
g_assert (num_matches == 1);
@@ -1017,7 +1017,7 @@ PyGObject_off (PyGObject * self, PyObject * args)
10171017
PyObject * callback;
10181018
GSList * entry;
10191019
GClosure * closure;
1020-
guint num_matches;
1020+
G_GNUC_UNUSED guint num_matches;
10211021

10221022
if (!PyGObject_parse_signal_method_args (args, G_OBJECT_TYPE (self->handle), &signal_id, &callback))
10231023
return NULL;

0 commit comments

Comments
 (0)