[Python-checkins] cpython: Fix a compiler warning on FreeBSD
victor.stinner
python-checkins at python.org
Thu Jul 18 22:46:49 CEST 2013
http://hg.python.org/cpython/rev/4c1945554edb
changeset: 84708:4c1945554edb
user: Victor Stinner <victor.stinner at gmail.com>
date: Thu Jul 18 02:43:47 2013 +0200
summary:
Fix a compiler warning on FreeBSD
Modules/python.c:40: warning: ISO C90 forbids mixed declarations and code
files:
Modules/python.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/Modules/python.c b/Modules/python.c
--- a/Modules/python.c
+++ b/Modules/python.c
@@ -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
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list