]> granicus.if.org Git - python/commitdiff
ssue #25207: fix ICC compiler warning in msvcrtmodule.c
authorVictor Stinner <victor.stinner@gmail.com>
Mon, 21 Sep 2015 20:40:28 +0000 (22:40 +0200)
committerVictor Stinner <victor.stinner@gmail.com>
Mon, 21 Sep 2015 20:40:28 +0000 (22:40 +0200)
PC/msvcrtmodule.c

index 52d4100759280e3bac997f24dea0da739a29d1d2..d73ce792237a2cf1444814eda999db9e6332bb5d 100644 (file)
@@ -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;
 }