[Python-checkins] cpython: ssue #25207: fix ICC compiler warning in msvcrtmodule.c
victor.stinner
python-checkins at python.org
Mon Sep 21 22:45:14 CEST 2015
https://hg.python.org/cpython/rev/73867bf953e6
changeset: 98149:73867bf953e6
user: Victor Stinner <victor.stinner at gmail.com>
date: Mon Sep 21 22:40:28 2015 +0200
summary:
ssue #25207: fix ICC compiler warning in msvcrtmodule.c
files:
PC/msvcrtmodule.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/PC/msvcrtmodule.c b/PC/msvcrtmodule.c
--- a/PC/msvcrtmodule.c
+++ b/PC/msvcrtmodule.c
@@ -541,7 +541,6 @@
#endif
/* constants for the crt versions */
- (void)st;
#ifdef _VC_ASSEMBLY_PUBLICKEYTOKEN
st = PyModule_AddStringConstant(m, "VC_ASSEMBLY_PUBLICKEYTOKEN",
_VC_ASSEMBLY_PUBLICKEYTOKEN);
@@ -567,6 +566,8 @@
st = PyModule_AddObject(m, "CRT_ASSEMBLY_VERSION", version);
if (st < 0) return NULL;
#endif
+ /* make compiler warning quiet if st is unused */
+ (void)st;
return m;
}
--
Repository URL: https://hg.python.org/cpython
More information about the Python-checkins
mailing list