Commit b29aef85 authored by David Gobbi's avatar David Gobbi

COMP: more vtkPythonUtil.cxx compiler warnings

parent ab0a821b
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment