Commit aa93e216 authored by bonnell's avatar bonnell

Fix a few 'unreferenced local var' compiler warnings.

git-svn-id: http://visit.ilight.com/svn/visit/trunk/src@21170 18c085ea-50e0-402c-830e-de6fd14e8384
parent a3d8bfe2
......@@ -1084,7 +1084,7 @@ avtConnComponentsExpression::GlobalLabelShift
#ifdef PARALLEL
// loop indices
int i,j;
int i;
// get the processor id and # of processors
int procid = PAR_Rank();
......
......@@ -765,7 +765,6 @@ avtParICAlgorithm::RecvAny(vector<MsgCommData> *msgs,
else if (buffers[i].first == avtParICAlgorithm::DATASET_TAG)
{
BlockIDType dom;
int dsLen;
buffers[i].second->read(dom);
vtkDataSet *d;
......
......@@ -521,7 +521,6 @@ avtIVPDopri5::Step(avtIVPField* field, double t_max,
avtIVPStep* ivpstep)
{
const double direction = sign( 1.0, t_max - t );
avtIVPSolver::Result res;
avtIVPField::Result fieldResult;
// compute maximum stepsize
......
......@@ -123,7 +123,6 @@ avtIVPFlashField::operator()( const double &t,
if (FindCell(t, p) != OK)
return OUTSIDE_SPATIAL;
Result result;
avtVector B, E;
if (FindValue(B_vtkDataArray, B) && FindValue(E_vtkDataArray, E))
{
......
......@@ -113,8 +113,7 @@ avtIVPM3DC1Field::avtIVPM3DC1Field( vtkDataSet* dataset,
}
// Dummy variable to the template class
int *intPtr, intVar = 0;
float *fltPtr, fltVar = 0;
float fltVar = 0;
// The mesh elements.
elements =
......@@ -413,7 +412,7 @@ void avtIVPM3DC1Field::findElementNeighbors()
float *ptr;
double x[3], y[3], co, sn;
int el, vert, tri[3], vlen;
int el, vert, tri[3];
/* Allocate, initialize neighbor table */
neighbors = (int *) malloc(3 * tElements * sizeof(int));
......@@ -1271,7 +1270,6 @@ void avtIVPM3DC1Field::interpdX2(float *var, int el, double *lcoords,
{
float *a = var + scalar_size*el;
double xi = lcoords[0], eta = lcoords[1];
int index;
if( element_dimension == 2 )
{
......
......@@ -159,7 +159,6 @@ void
avtNamedSelectionManager::CreateNamedSelection(avtDataObject_p dob,
const SelectionProperties &selProps, avtNamedSelectionExtension *ext)
{
int i;
const char *mName = "avtNamedSelectionManager::CreateNamedSelection: ";
StackTimer t0("CreateNamedSelection");
......
......@@ -945,7 +945,6 @@ avtOpenGLSurfaceAndWireframeRenderer::GenericDrawPolygons(
{
vtkIdType *pts = 0;
vtkIdType npts = 0;
double polyNorm[3];
for (ca->InitTraversal(); ca->GetNextCell(npts,pts); )
{
glBegin(rep);
......@@ -2009,7 +2008,6 @@ avtOpenGLSurfaceAndWireframeRenderer::DrawSurface2()
{
int rep;
vtkPoints *p;
vtkCellArray *aPrim;
vtkUnsignedCharArray *c=NULL;
vtkDataArray *n;
vtkDataArray *t;
......
......@@ -514,11 +514,11 @@ void vtkVisItAxisActor2D::BuildAxis(vtkViewport *viewport)
{
int i, *x;
vtkIdType ptIds[2];
double p1[3], p2[3], offset;
double p1[3], p2[3];
int numLabels, labelCount = 0;
double outRange[2], deltaX, deltaY, xTick[3];
double theta, val;
int *size, stringSize[2];
int *size;
char string[64];
double proportion[VTK_MAX_LABELS];
double ticksize[VTK_MAX_LABELS];
......@@ -764,7 +764,7 @@ void vtkVisItAxisActor2D::BuildAxis(vtkViewport *viewport)
if (fabs(error) < 0.01) // < less than 1%
break;
bool foundDot = false;
for (int c = 0 ; c < strlen(format) ; c++)
for (size_t c = 0 ; c < strlen(format) ; c++)
{
if (format[c] == '.')
foundDot = true;
......
......@@ -346,7 +346,6 @@ void QWsSocket::close( QString reason )
// Compose and send close frame
quint64 messageSize = reason.size();
QByteArray BA;
quint8 byte;
QByteArray header = QWsSocket::composeHeader( true, OpClose, 0 );
BA.append( header );
......
......@@ -227,6 +227,7 @@ vtkTensorReduceFilter::RequestData(
onevertex[0] = i;
output->InsertNextCell(VTK_VERTEX, 1, onevertex);
}
return 1;
}
// ****************************************************************************
......
......@@ -88,7 +88,7 @@ int vtkVisItCellDataToPointData::RequestData(
vtkDataSet *output = vtkDataSet::SafeDownCast(
outInfo->Get(vtkDataObject::DATA_OBJECT()));
vtkIdType cellId, ptId, i, j, k, l, m;
vtkIdType cellId, ptId, i, j, k, l;
vtkIdType numCells, numPts;
vtkCellData *inPD=input->GetCellData();
vtkPointData *outPD=output->GetPointData();
......
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