Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
ca713c01
Commit
ca713c01
authored
Jul 18, 2013
by
Victor Stinner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix a compiler warning on FreeBSD
Modules/python.c:40: warning: ISO C90 forbids mixed declarations and code
parent
569f3640
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
Modules/python.c
Modules/python.c
+3
-2
No files found.
Modules/python.c
View file @
ca713c01
...
@@ -23,6 +23,9 @@ main(int argc, char **argv)
...
@@ -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)
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment