Skip to content

Commit

Permalink
pythongh-113172: Fix compiler warnings in Modules/_xxinterpqueuesmodu…
Browse files Browse the repository at this point in the history
…le.c (pythonGH-113173)

Fix compiler waarnings in Modules/_xxinterpqueuesmodule.c
  • Loading branch information
serhiy-storchaka authored Dec 15, 2023
1 parent 4a153a1 commit e365c94
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Modules/_xxinterpqueuesmodule.c
Original file line number Diff line number Diff line change
Expand Up @@ -234,11 +234,13 @@ static int
add_exctype(PyObject *mod, PyObject **p_state_field,
const char *qualname, const char *doc, PyObject *base)
{
#ifndef NDEBUG
const char *dot = strrchr(qualname, '.');
assert(dot != NULL);
const char *name = dot+1;
assert(*p_state_field == NULL);
assert(!PyObject_HasAttrStringWithError(mod, name));
#endif
PyObject *exctype = PyErr_NewExceptionWithDoc(qualname, doc, base, NULL);
if (exctype == NULL) {
return -1;
Expand Down Expand Up @@ -1505,7 +1507,7 @@ queuesmod_is_full(PyObject *self, PyObject *args, PyObject *kwds)
}
int64_t qid = qidarg.id;

int is_full;
int is_full = 0;
int err = queue_is_full(&_globals.queues, qid, &is_full);
if (handle_queue_error(err, self, qid)) {
return NULL;
Expand Down

0 comments on commit e365c94

Please sign in to comment.