diff Modules/python.c @ 84708:4c1945554edb

Fix a compiler warning on FreeBSD Modules/python.c:40: warning: ISO C90 forbids mixed declarations and code
author Victor Stinner <victor.stinner@gmail.com>
date Thu, 18 Jul 2013 02:43:47 +0200
parents b583fd54c8d6
children 386ab2c12301
line wrap: on
line diff
--- a/Modules/python.c	Thu Jul 18 02:31:21 2013 +0200
+++ b/Modules/python.c	Thu Jul 18 02:43:47 2013 +0200
@@ -23,6 +23,9 @@
     wchar_t **argv_copy2;
     int i, res;
     char *oldloc;
+#ifdef __FreeBSD__
+    fp_except_t m;
+#endif
 
     argv_copy = (wchar_t **)PyMem_RawMalloc(sizeof(wchar_t*) * (argc+1));
     argv_copy2 = (wchar_t **)PyMem_RawMalloc(sizeof(wchar_t*) * (argc+1));
@@ -37,8 +40,6 @@
      * exceptions by default.  Here we disable them.
      */
 #ifdef __FreeBSD__
-    fp_except_t m;
-
     m = fpgetmask();
     fpsetmask(m & ~FP_X_OFL);
 #endif