Commit c480edf2 authored by Berk Geveci's avatar Berk Geveci

fixed warnings

parent 4525fd62
......@@ -24,7 +24,7 @@
#include "vtkTransform.h"
#include "vtkUnsignedIntArray.h"
vtkCxxRevisionMacro(vtkDepthSortPolyData, "1.24");
vtkCxxRevisionMacro(vtkDepthSortPolyData, "1.25");
vtkStandardNewMacro(vtkDepthSortPolyData);
vtkCxxSetObjectMacro(vtkDepthSortPolyData,Camera,vtkCamera);
......@@ -76,7 +76,7 @@ typedef struct _vtkSortValues {
extern "C"
{
static int CompareBackToFront(const void *val1, const void *val2)
int vtkCompareBackToFront(const void *val1, const void *val2)
{
if (((vtkSortValues *)val1)->z > ((vtkSortValues *)val2)->z)
{
......@@ -95,7 +95,7 @@ extern "C"
extern "C"
{
static int CompareFrontToBack(const void *val1, const void *val2)
int vtkCompareFrontToBack(const void *val1, const void *val2)
{
if (((vtkSortValues *)val1)->z < ((vtkSortValues *)val2)->z)
{
......@@ -205,11 +205,13 @@ void vtkDepthSortPolyData::Execute()
// Sort the depths
if ( this->Direction == VTK_DIRECTION_FRONT_TO_BACK )
{
qsort((void *)depth, numCells, sizeof(vtkSortValues), CompareFrontToBack);
qsort((void *)depth, numCells, sizeof(vtkSortValues),
vtkCompareFrontToBack);
}
else
{
qsort((void *)depth, numCells, sizeof(vtkSortValues), CompareBackToFront);
qsort((void *)depth, numCells, sizeof(vtkSortValues),
vtkCompareBackToFront);
}
this->UpdateProgress(0.60);
......
......@@ -73,8 +73,8 @@ static Tk_ConfigSpec vtkTkImageViewerWidgetConfigSpecs[] = {
// Forward prototypes
extern "C"
{
static void vtkTkImageViewerWidget_EventProc(ClientData clientData,
XEvent *eventPtr);
void vtkTkImageViewerWidget_EventProc(ClientData clientData,
XEvent *eventPtr);
}
static int vtkTkImageViewerWidget_MakeImageViewer(struct vtkTkImageViewerWidget *self);
......@@ -292,7 +292,7 @@ int vtkTkImageViewerWidget_Height( const struct vtkTkImageViewerWidget *self)
extern "C"
{
static void vtkTkImageViewerWidget_Destroy(char *memPtr)
void vtkTkImageViewerWidget_Destroy(char *memPtr)
{
struct vtkTkImageViewerWidget *self = (struct vtkTkImageViewerWidget *)memPtr;
......@@ -326,8 +326,8 @@ extern "C"
// Possibly X dependent
extern "C"
{
static void vtkTkImageViewerWidget_EventProc(ClientData clientData,
XEvent *eventPtr)
void vtkTkImageViewerWidget_EventProc(ClientData clientData,
XEvent *eventPtr)
{
struct vtkTkImageViewerWidget *self =
(struct vtkTkImageViewerWidget *)clientData;
......
......@@ -71,8 +71,8 @@ static Tk_ConfigSpec vtkTkRenderWidgetConfigSpecs[] = {
// Foward prototypes
extern "C"
{
static void vtkTkRenderWidget_EventProc(ClientData clientData,
XEvent *eventPtr);
void vtkTkRenderWidget_EventProc(ClientData clientData,
XEvent *eventPtr);
}
static int vtkTkRenderWidget_MakeRenderWindow(struct vtkTkRenderWidget *self);
......@@ -302,7 +302,7 @@ int vtkTkRenderWidget_Height( const struct vtkTkRenderWidget *self)
*/
extern "C"
{
static void vtkTkRenderWidget_Destroy(char *memPtr)
void vtkTkRenderWidget_Destroy(char *memPtr)
{
struct vtkTkRenderWidget *self = (struct vtkTkRenderWidget *)memPtr;
......@@ -333,8 +333,8 @@ extern "C"
// Possibly X dependent
extern "C"
{
static void vtkTkRenderWidget_EventProc(ClientData clientData,
XEvent *eventPtr)
void vtkTkRenderWidget_EventProc(ClientData clientData,
XEvent *eventPtr)
{
struct vtkTkRenderWidget *self = (struct vtkTkRenderWidget *)clientData;
......
......@@ -31,7 +31,7 @@
#include "vtkOldStyleCallbackCommand.h"
#include "vtkObjectFactory.h"
vtkCxxRevisionMacro(vtkXRenderWindowTclInteractor, "1.40");
vtkCxxRevisionMacro(vtkXRenderWindowTclInteractor, "1.41");
vtkStandardNewMacro(vtkXRenderWindowTclInteractor);
// steal the first three elements of the TkMainInfo stuct
......@@ -73,7 +73,7 @@ static int vtkTclEventProc(XtPointer clientData,XEvent *event)
extern "C"
{
static void vtkXTclTimerProc(ClientData clientData)
void vtkXTclTimerProc(ClientData clientData)
{
XtIntervalId id;
......
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