Skip to content

Commit ca713c0

Browse files
committed
Fix a compiler warning on FreeBSD
Modules/python.c:40: warning: ISO C90 forbids mixed declarations and code
1 parent 569f364 commit ca713c0

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

Modules/python.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ main(int argc, char **argv)
2323
wchar_t **argv_copy2;
2424
int i, res;
2525
char *oldloc;
26+
#ifdef __FreeBSD__
27+
fp_except_t m;
28+
#endif
2629

2730
argv_copy = (wchar_t **)PyMem_RawMalloc(sizeof(wchar_t*) * (argc+1));
2831
argv_copy2 = (wchar_t **)PyMem_RawMalloc(sizeof(wchar_t*) * (argc+1));
@@ -37,8 +40,6 @@ main(int argc, char **argv)
3740
* exceptions by default. Here we disable them.
3841
*/
3942
#ifdef __FreeBSD__
40-
fp_except_t m;
41-
4243
m = fpgetmask();
4344
fpsetmask(m & ~FP_X_OFL);
4445
#endif

0 commit comments

Comments
 (0)