Skip to content

Commit e365c94

Browse files
gh-113172: Fix compiler warnings in Modules/_xxinterpqueuesmodule.c (GH-113173)
Fix compiler waarnings in Modules/_xxinterpqueuesmodule.c
1 parent 4a153a1 commit e365c94

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Modules/_xxinterpqueuesmodule.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,11 +234,13 @@ static int
234234
add_exctype(PyObject *mod, PyObject **p_state_field,
235235
const char *qualname, const char *doc, PyObject *base)
236236
{
237+
#ifndef NDEBUG
237238
const char *dot = strrchr(qualname, '.');
238239
assert(dot != NULL);
239240
const char *name = dot+1;
240241
assert(*p_state_field == NULL);
241242
assert(!PyObject_HasAttrStringWithError(mod, name));
243+
#endif
242244
PyObject *exctype = PyErr_NewExceptionWithDoc(qualname, doc, base, NULL);
243245
if (exctype == NULL) {
244246
return -1;
@@ -1505,7 +1507,7 @@ queuesmod_is_full(PyObject *self, PyObject *args, PyObject *kwds)
15051507
}
15061508
int64_t qid = qidarg.id;
15071509

1508-
int is_full;
1510+
int is_full = 0;
15091511
int err = queue_is_full(&_globals.queues, qid, &is_full);
15101512
if (handle_queue_error(err, self, qid)) {
15111513
return NULL;

0 commit comments

Comments
 (0)