summaryrefslogtreecommitdiff
path: root/Modules/python.c
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2013-07-18 02:43:47 +0200
committerVictor Stinner <victor.stinner@gmail.com>2013-07-18 02:43:47 +0200
commitca713c014ecab385b606237395e14508500b4d27 (patch)
treeda16fcd537257212d79f6b2d2038268edf72e19f /Modules/python.c
parent569f364017442cc46e15e55027984ee890e2f8e2 (diff)
downloadcpython-git-ca713c014ecab385b606237395e14508500b4d27.tar.gz
Fix a compiler warning on FreeBSD
Modules/python.c:40: warning: ISO C90 forbids mixed declarations and code
Diffstat (limited to 'Modules/python.c')
-rw-r--r--Modules/python.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/Modules/python.c b/Modules/python.c
index 71335deb5a..326aa36983 100644
--- a/Modules/python.c
+++ b/Modules/python.c
@@ -23,6 +23,9 @@ main(int argc, char **argv)
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 @@ main(int argc, char **argv)
* exceptions by default. Here we disable them.
*/
#ifdef __FreeBSD__
- fp_except_t m;
-
m = fpgetmask();
fpsetmask(m & ~FP_X_OFL);
#endif