Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 7480e50

Browse filesBrowse 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
Copy full SHA for 7480e50

File tree

Expand file treeCollapse file tree

3 files changed

+4
-2
lines changed
Filter options
Expand file treeCollapse file tree

3 files changed

+4
-2
lines changed

‎Modules/_interpchannelsmodule.c

Copy file name to clipboardExpand all lines: Modules/_interpchannelsmodule.c
+1-1Lines 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

Copy file name to clipboardExpand all lines: Modules/_interpqueuesmodule.c
+1-1Lines 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

Copy file name to clipboardExpand all lines: Python/crossinterp.c
+2Lines 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)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.