8000 [3.14] gh-132775: Fix Recently Introduced Warnings (gh-134532) · python/cpython@7480e50 · GitHub
[go: up one dir, main page]

Skip to content

Commit 7480e50

Browse files
[3.14] gh-132775: Fix Recently Introduced Warnings (gh-134532)
(cherry picked from commit ac06b53, AKA gh-134530) Co-authored-by: Eric Snow <ericsnowcurrently@gmail.com>
1 parent 04e2dd6 commit 7480e50

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

Modules/_interpchannelsmodule.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3443,7 +3443,7 @@ channelsmod_get_channel_defaults(PyObject *self, PyObject *args, PyObject *kwds)
34433443
}
34443444
int64_t cid = cid_data.cid;
34453445

3446-
struct _channeldefaults defaults;
3446+
struct _channeldefaults defaults = {0};
34473447
int err = channel_get_defaults(&_globals.channels, cid, &defaults);
34483448
if (handle_channel_error(err, self, cid)) {
34493449
return NULL;

Modules/_interpqueuesmodule.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1772,7 +1772,7 @@ queuesmod_get_queue_defaults(PyObject *self, PyObject *args, PyObject *kwds)
17721772
}
17731773
int64_t qid = qidarg.id;
17741774

1775-
struct _queuedefaults defaults;
1775+
struct _queuedefaults defaults = {0};
17761776
int err = queue_get_defaults(&_globals.queues, qid, &defaults);
17771777
if (handle_queue_error(err, self, qid)) {
17781778
return NULL;

Python/crossinterp.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1795,6 +1795,7 @@ typedef struct _sharednsitem {
17951795
// in a different interpreter to release the XI data.
17961796
} _PyXI_namespace_item;
17971797

1798+
#ifndef NDEBUG
17981799
static int
17991800
_sharednsitem_is_initialized(_PyXI_namespace_item *item)
18001801
{
@@ -1803,6 +1804,7 @@ _sharednsitem_is_initialized(_PyXI_namespace_item *item)
18031804
}
18041805
return 0;
18051806
}
1807+
#endif
18061808

18071809
static int
18081810
_sharednsitem_init(_PyXI_namespace_item *item, PyObject *key)

0 commit comments

Comments
 (0)
0