Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Christian Butz
VTK
Commits
b29aef85
Commit
b29aef85
authored
Jun 17, 2010
by
David Gobbi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
COMP: more vtkPythonUtil.cxx compiler warnings
parent
ab0a821b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
3 deletions
+11
-3
Wrapping/Python/vtkPythonUtil.cxx
Wrapping/Python/vtkPythonUtil.cxx
+11
-3
No files found.
Wrapping/Python/vtkPythonUtil.cxx
View file @
b29aef85
...
...
@@ -227,15 +227,13 @@ bool vtkPythonOverloadHelper::next(const char **format, const char **classname)
//--------------------------------------------------------------------
// If tmpi > VTK_INT_MAX, then penalize unless format == 'l'
#if VTK_SIZEOF_LONG != VTK_SIZEOF_INT
#ifdef PY_LONG_LONG
int
vtkPythonIntPenalty
(
PY_LONG_LONG
tmpi
,
int
penalty
,
char
format
)
#else
int
vtkPythonIntPenalty
(
long
tmpi
,
int
penalty
,
char
format
)
#endif
{
tmpi
;
format
;
// avoid "unused parameter" compiler warnings
#if VTK_SIZEOF_LONG != VTK_SIZEOF_INT
if
(
tmpi
>
VTK_INT_MAX
||
tmpi
<
VTK_INT_MIN
)
{
if
(
format
!=
'l'
)
...
...
@@ -268,9 +266,19 @@ int vtkPythonIntPenalty(long tmpi, int penalty, char format)
}
}
}
return
penalty
;
}
#else
#ifdef PY_LONG_LONG
int
vtkPythonIntPenalty
(
PY_LONG_LONG
,
int
penalty
,
char
)
#else
int
vtkPythonIntPenalty
(
long
,
int
penalty
,
char
)
#endif
{
return
penalty
;
}
#endif
//--------------------------------------------------------------------
// This must check the same format chars that are used by
...
...
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