Skip to content

Commit

Permalink
Refs #6315. Dealing with Unix warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Reuter committed Apr 26, 2013
1 parent a3de13d commit bf3558d
Show file tree
Hide file tree
Showing 15 changed files with 50 additions and 16 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#ifndef VTKRECTILINEARGRID_SILENT_H
#define VTKRECTILINEARGRID_SILENT_H

#if defined(__GNUC__)
#if (__GNUC__ >= 4 && __GNUC_MINOR__ >= 6 )
#pragma GCC diagnostic push
#endif
#pragma GCC diagnostic ignored "-Wconversion"
#endif
#include <vtkRectilinearGrid.h>
#if defined(__GNUC__)
#if (__GNUC__ >= 4 && __GNUC_MINOR__ >= 6 )
#pragma GCC diagnostic pop
#endif
#endif

#endif // VTKRECTILINEARGRID_SILENT_H
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#ifndef VTKSTRUCTUREDGRID_SILENT_H
#define VTKSTRUCTUREDGRID_SILENT_H

#if defined(__GNUC__)
#if (__GNUC__ >= 4 && __GNUC_MINOR__ >= 6 )
#pragma GCC diagnostic push
#endif
#pragma GCC diagnostic ignored "-Wconversion"
#endif
#include <vtkStructuredGrid.h>
#if defined(__GNUC__)
#if (__GNUC__ >= 4 && __GNUC_MINOR__ >= 6 )
#pragma GCC diagnostic pop
#endif
#endif

#endif // VTKSTRUCTUREDGRID_SILENT_H
2 changes: 1 addition & 1 deletion Code/Mantid/Vates/VatesAPI/test/vtkDataSetFactoryTest.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
#include "MantidAPI/Workspace.h"
#include "MantidAPI/IMDHistoWorkspace.h"
#include "MantidTestHelpers/MDEventsTestHelper.h"
#include <vtkStructuredGrid.h>
#include "MantidVatesAPI/vtkStructuredGrid_Silent.h"

using namespace Mantid::API;
using namespace Mantid::MDEvents;
Expand Down
2 changes: 1 addition & 1 deletion Code/Mantid/Vates/VatesAPI/test/vtkDataSetToGeometryTest.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

#include "vtkFieldData.h"
#include "vtkCharArray.h"
#include "vtkRectilinearGrid.h"
#include "MantidVatesAPI/vtkRectilinearGrid_Silent.h"

#include "MantidVatesAPI/RebinningCutterXMLDefinitions.h"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#include "MantidGeometry/MDGeometry/MDImplicitFunction.h"
#include "MockObjects.h"
#include <vtkDataSet.h>
#include <vtkStructuredGrid.h>
#include "MantidVatesAPI/vtkStructuredGrid_Silent.h"

using namespace Mantid::VATES;

Expand Down Expand Up @@ -65,4 +65,4 @@ class vtkDataSetToImplicitFunctionTest : public CxxTest::TestSuite

};

#endif
#endif
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
#include <vtkFieldData.h>
#include <vtkFloatArray.h>
#include <vtkPoints.h>
#include <vtkRectilinearGrid.h>
#include "MantidVatesAPI/vtkRectilinearGrid_Silent.h"
#include <vtkUnstructuredGrid.h>

using namespace Mantid::API;
Expand Down
4 changes: 2 additions & 2 deletions Code/Mantid/Vates/VatesAPI/test/vtkDataSetToWsLocationTest.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#include <cxxtest/TestSuite.h>
#include "MantidVatesAPI/vtkDataSetToWsLocation.h"
#include <vtkDataSet.h>
#include <vtkStructuredGrid.h>
#include "MantidVatesAPI/vtkStructuredGrid_Silent.h"
#include "MockObjects.h"

using namespace Mantid::VATES;
Expand Down Expand Up @@ -55,4 +55,4 @@ class vtkDataSetToWsLocationTest : public CxxTest::TestSuite

};

#endif
#endif
4 changes: 2 additions & 2 deletions Code/Mantid/Vates/VatesAPI/test/vtkDataSetToWsNameTest.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#include <cxxtest/TestSuite.h>
#include "MantidVatesAPI/vtkDataSetToWsName.h"
#include "MockObjects.h"
#include <vtkStructuredGrid.h>
#include "MantidVatesAPI/vtkStructuredGrid_Silent.h"

using namespace Mantid::VATES;

Expand Down Expand Up @@ -55,4 +55,4 @@ class vtkDataSetToWsNameTest : public CxxTest::TestSuite

};

#endif
#endif
2 changes: 1 addition & 1 deletion Code/Mantid/Vates/VatesAPI/test/vtkMDHexFactoryTest.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
#include <gtest/gtest.h>
#include <vtkCellData.h>
#include <vtkDataArray.h>
#include <vtkStructuredGrid.h>
#include "MantidVatesAPI/vtkStructuredGrid_Silent.h"

using namespace Mantid;
using namespace Mantid::VATES;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#include "MantidVatesAPI/NoThresholdRange.h"
#include "MockObjects.h"
#include <cxxtest/TestSuite.h>
#include <vtkStructuredGrid.h>
#include "MantidVatesAPI/vtkStructuredGrid_Silent.h"

using namespace Mantid;
using namespace Mantid::MDEvents;
Expand Down
2 changes: 1 addition & 1 deletion Code/Mantid/Vates/VatesAPI/test/vtkMDHistoHexFactoryTest.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#include <cxxtest/TestSuite.h>
#include <gmock/gmock.h>
#include <gtest/gtest.h>
#include <vtkStructuredGrid.h>
#include "MantidVatesAPI/vtkStructuredGrid_Silent.h"

using namespace Mantid;
using namespace Mantid::API;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#include <cxxtest/TestSuite.h>
#include <gmock/gmock.h>
#include <gtest/gtest.h>
#include <vtkStructuredGrid.h>
#include "MantidVatesAPI/vtkStructuredGrid_Silent.h"

using namespace Mantid;
using namespace Mantid::MDEvents;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
#include "MantidVatesAPI/vtkMDHistoQuadFactory.h"
#include "MockObjects.h"
#include <cxxtest/TestSuite.h>
#include <vtkStructuredGrid.h>
#include "MantidVatesAPI/vtkStructuredGrid_Silent.h"
#include <gmock/gmock.h>
#include <gtest/gtest.h>

Expand Down
2 changes: 1 addition & 1 deletion Code/Mantid/Vates/VatesAPI/test/vtkMDLineFactoryTest.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
#include "MantidTestHelpers/MDEventsTestHelper.h"
#include "vtkCellType.h"
#include "vtkUnstructuredGrid.h"
#include <vtkStructuredGrid.h>
#include "MantidVatesAPI/vtkStructuredGrid_Silent.h"

using namespace Mantid::VATES;
using namespace Mantid::API;
Expand Down
2 changes: 1 addition & 1 deletion Code/Mantid/Vates/VatesAPI/test/vtkMDQuadFactoryTest.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
#include "MantidTestHelpers/MDEventsTestHelper.h"
#include "vtkCellType.h"
#include "vtkUnstructuredGrid.h"
#include <vtkStructuredGrid.h>
#include "MantidVatesAPI/vtkStructuredGrid_Silent.h"

using namespace Mantid::VATES;
using namespace Mantid::API;
Expand Down

0 comments on commit bf3558d

Please sign in to comment.