Skip to content
Snippets Groups Projects
Commit 4bb02786 authored by Spiros Tsalikis's avatar Spiros Tsalikis Committed by Kitware Robot
Browse files

Merge topic 'fix-gcc-compilation-error'


b608770c Common/DataModel/Testing: avoid ODR violations of helper functions

Acked-by: default avatarKitware Robot <kwrobot@kitware.com>
Acked-by: default avatarBen Boeckel <ben.boeckel@kitware.com>
Merge-request: !9333
parents 67fd6511 b608770c
No related branches found
No related tags found
No related merge requests found
......@@ -22,7 +22,7 @@
#include "vtkStaticCellLocator.h"
#include "vtkXMLPolyDataReader.h"
bool TestCell(vtkDataSet* ds, vtkIdType cellId, double x1[3], double x2[3], double tol)
static bool TestCell(vtkDataSet* ds, vtkIdType cellId, double x1[3], double x2[3], double tol)
{
double t = 0.0;
double x[3] = { 0.0, 0.0, 0.0 };
......@@ -34,7 +34,7 @@ bool TestCell(vtkDataSet* ds, vtkIdType cellId, double x1[3], double x2[3], doub
return static_cast<bool>(cell->IntersectWithLine(x1, x2, tol, t, x, pcoords, subId));
}
bool TestLocator(vtkDataSet* ds, vtkAbstractCellLocator* loc)
static bool TestLocator(vtkDataSet* ds, vtkAbstractCellLocator* loc)
{
std::cout << "\nTesting " << loc->GetClassName() << std::endl;
loc->SetDataSet(ds);
......
......@@ -21,7 +21,7 @@
#include <vtkStaticCellLocator.h>
#include <vtkXMLPolyDataReader.h>
int TestCell(vtkDataSet* ds, int cellId, double x1[3], double x2[3], double tol)
static int TestCell(vtkDataSet* ds, int cellId, double x1[3], double x2[3], double tol)
{
double t = 0.0;
double x[3] = { 0.0, 0.0, 0.0 };
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment