Skip to content

Commit

Permalink
_frida: Fix assigned-but-not-used warnings
Browse files Browse the repository at this point in the history
When building without assertions.
  • Loading branch information
oleavr committed Nov 7, 2022
1 parent 1ef5f90 commit b236764
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/_frida.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit b236764

Please sign in to comment.