Skip to content

Commit

Permalink
fix unused warning
Browse files Browse the repository at this point in the history
  • Loading branch information
waahm7 committed Sep 19, 2024
1 parent 87ffaa1 commit f820bab
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions source/mqtt_client_connection.c
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,7 @@ static void s_on_connection_success(
PyErr_WriteUnraisable(PyErr_Occurred());
}
}
goto on_done; /* fixes unused label waring */
on_done:
#if PY_VERSION_HEX >= 0x030D0000
Py_XDECREF(self);
Expand Down Expand Up @@ -200,6 +201,7 @@ static void s_on_connection_failure(struct aws_mqtt_client_connection *connectio
}
}

goto on_done; /* fixes unused label waring */
on_done:
#if PY_VERSION_HEX >= 0x030D0000
Py_XDECREF(self);
Expand Down Expand Up @@ -241,6 +243,7 @@ static void s_on_connection_interrupted(struct aws_mqtt_client_connection *conne
}
}

goto on_done; /* fixes unused label waring */
on_done:
#if PY_VERSION_HEX >= 0x030D0000
Py_XDECREF(self);
Expand Down Expand Up @@ -288,6 +291,7 @@ static void s_on_connection_resumed(
PyErr_WriteUnraisable(PyErr_Occurred());
}
}
goto on_done; /* fixes unused label waring */
on_done:
#if PY_VERSION_HEX >= 0x030D0000
Py_XDECREF(self);
Expand Down Expand Up @@ -332,6 +336,7 @@ static void s_on_connection_closed(
}
}

goto on_done; /* fixes unused label waring */
on_done:
#if PY_VERSION_HEX >= 0x030D0000
Py_XDECREF(self);
Expand Down

0 comments on commit f820bab

Please sign in to comment.