Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

Commitac06b53

Browse files
gh-132775: Fix Recently Introduced Warnings (gh-134530)
1 parent484e003 commitac06b53

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_tcid=cid_data.cid;
34453445

3446-
struct_channeldefaultsdefaults;
3446+
struct_channeldefaultsdefaults= {0};
34473447
interr=channel_get_defaults(&_globals.channels,cid,&defaults);
34483448
if (handle_channel_error(err,self,cid)) {
34493449
returnNULL;

‎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_tqid=qidarg.id;
17741774

1775-
struct_queuedefaultsdefaults;
1775+
struct_queuedefaultsdefaults= {0};
17761776
interr=queue_get_defaults(&_globals.queues,qid,&defaults);
17771777
if (handle_queue_error(err,self,qid)) {
17781778
returnNULL;

‎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+
#ifndefNDEBUG
17981799
staticint
17991800
_sharednsitem_is_initialized(_PyXI_namespace_item*item)
18001801
{
@@ -1803,6 +1804,7 @@ _sharednsitem_is_initialized(_PyXI_namespace_item *item)
18031804
}
18041805
return0;
18051806
}
1807+
#endif
18061808

18071809
staticint
18081810
_sharednsitem_init(_PyXI_namespace_item*item,PyObject*key)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp