From: Victor Stinner Date: Mon, 21 Sep 2015 20:40:28 +0000 (+0200) Subject: ssue #25207: fix ICC compiler warning in msvcrtmodule.c X-Git-Tag: v3.6.0a1~1487 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ba4529593877f2016215149912496e030782a57e;p=thirdparty%2FPython%2Fcpython.git ssue #25207: fix ICC compiler warning in msvcrtmodule.c --- diff --git a/PC/msvcrtmodule.c b/PC/msvcrtmodule.c index 52d410075928..d73ce792237a 100644 --- a/PC/msvcrtmodule.c +++ b/PC/msvcrtmodule.c @@ -541,7 +541,6 @@ PyInit_msvcrt(void) #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 @@ PyInit_msvcrt(void) 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; }