Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ba45295

Browse files
committed
ssue #25207: fix ICC compiler warning in msvcrtmodule.c
1 parent 4552ced commit ba45295

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

PC/msvcrtmodule.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -541,7 +541,6 @@ PyInit_msvcrt(void)
541541
#endif
542542

543543
/* constants for the crt versions */
544-
(void)st;
545544
#ifdef _VC_ASSEMBLY_PUBLICKEYTOKEN
546545
st = PyModule_AddStringConstant(m, "VC_ASSEMBLY_PUBLICKEYTOKEN",
547546
_VC_ASSEMBLY_PUBLICKEYTOKEN);
@@ -567,6 +566,8 @@ PyInit_msvcrt(void)
567566
st = PyModule_AddObject(m, "CRT_ASSEMBLY_VERSION", version);
568567
if (st < 0) return NULL;
569568
#endif
569+
/* make compiler warning quiet if st is unused */
570+
(void)st;
570571

571572
return m;
572573
}

0 commit comments

Comments
 (0)