mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
Fix a compiler warning on FreeBSD
Modules/python.c:40: warning: ISO C90 forbids mixed declarations and code
This commit is contained in:
parent
569f364017
commit
ca713c014e
1 changed files with 3 additions and 2 deletions
|
@ -23,6 +23,9 @@ main(int argc, char **argv)
|
||||||
wchar_t **argv_copy2;
|
wchar_t **argv_copy2;
|
||||||
int i, res;
|
int i, res;
|
||||||
char *oldloc;
|
char *oldloc;
|
||||||
|
#ifdef __FreeBSD__
|
||||||
|
fp_except_t m;
|
||||||
|
#endif
|
||||||
|
|
||||||
argv_copy = (wchar_t **)PyMem_RawMalloc(sizeof(wchar_t*) * (argc+1));
|
argv_copy = (wchar_t **)PyMem_RawMalloc(sizeof(wchar_t*) * (argc+1));
|
||||||
argv_copy2 = (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.
|
* exceptions by default. Here we disable them.
|
||||||
*/
|
*/
|
||||||
#ifdef __FreeBSD__
|
#ifdef __FreeBSD__
|
||||||
fp_except_t m;
|
|
||||||
|
|
||||||
m = fpgetmask();
|
m = fpgetmask();
|
||||||
fpsetmask(m & ~FP_X_OFL);
|
fpsetmask(m & ~FP_X_OFL);
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue