1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-14 13:30:48 +03:00

0027097: GCC and CLang compiler warnings and errors with -Wpedantic

Useless semicolons are removed after closing braces of namespaces and macros in code dependent on FreeImage and VTK.
Comments added at the closing braces of namespaces to help comprehension.
In OSD_File.cxx and OSD_Disk.cxx, unnecessary declarations of system functions are removed
This commit is contained in:
abv
2016-01-22 11:42:32 +03:00
parent a3f6f591fc
commit 68858c7dd6
27 changed files with 36 additions and 42 deletions

View File

@@ -121,4 +121,5 @@ void InitShapeMapper (vtkMapper* theMapper, vtkLookupTable* theColorTable)
theMapper->SetLookupTable (theColorTable);
theMapper->Update();
}
};
} // namespace IVtkTools

View File

@@ -83,6 +83,6 @@ namespace IVtkTools
Standard_EXPORT void InitShapeMapper (vtkMapper* theMapper,
vtkLookupTable* theColorTable);
};
}
#endif // IVtkTOOLS_H

View File

@@ -19,7 +19,7 @@
#include <vtkInformationVector.h>
#include <vtkObjectFactory.h>
vtkStandardNewMacro(IVtkTools_DisplayModeFilter);
vtkStandardNewMacro(IVtkTools_DisplayModeFilter)
//============================================================================
// Method: Constructor

View File

@@ -28,7 +28,8 @@
class Standard_EXPORT IVtkTools_DisplayModeFilter : public IVtkTools_SubPolyDataFilter
{
public:
vtkTypeMacro(IVtkTools_DisplayModeFilter,IVtkTools_SubPolyDataFilter);
vtkTypeMacro(IVtkTools_DisplayModeFilter,IVtkTools_SubPolyDataFilter)
static IVtkTools_DisplayModeFilter *New();
void PrintSelf (std::ostream& os, vtkIndent indent);

View File

@@ -31,7 +31,7 @@
#include <vtkTransform.h>
#include <vtkTransformPolyDataFilter.h>
vtkStandardNewMacro(IVtkTools_ShapeDataSource);
vtkStandardNewMacro(IVtkTools_ShapeDataSource)
//================================================================
// Function : Constructor

View File

@@ -33,7 +33,8 @@ class IVtkTools_EXPORT IVtkTools_ShapeDataSource : public vtkPolyDataAlgorithm
{
public:
vtkTypeMacro(IVtkTools_ShapeDataSource, vtkPolyDataAlgorithm);
vtkTypeMacro(IVtkTools_ShapeDataSource, vtkPolyDataAlgorithm)
static IVtkTools_ShapeDataSource* New();

View File

@@ -121,7 +121,7 @@ void IVtkTools_ShapeObject::SetShapeSource (IVtkTools_ShapeDataSource* theDataSo
//! @class IVtkTools_ShapeObject
//! @brief VTK holder class for OCC shapes to pass them through pipelines.
vtkStandardNewMacro(IVtkTools_ShapeObject);
vtkStandardNewMacro(IVtkTools_ShapeObject)
//============================================================================
// Method: Constructor

View File

@@ -37,7 +37,7 @@ class IVtkTools_ShapeDataSource;
class IVtkTools_EXPORT IVtkTools_ShapeObject : public vtkDataObject
{
public:
vtkTypeMacro (IVtkTools_ShapeObject, vtkObject);
vtkTypeMacro (IVtkTools_ShapeObject, vtkObject)
static IVtkTools_ShapeObject* New();

View File

@@ -30,7 +30,7 @@
//! before the user starts to select interactively, in order for the OCCT selection
//! algorithm to prepare its internal selection data.
vtkStandardNewMacro(IVtkTools_ShapePicker);
vtkStandardNewMacro(IVtkTools_ShapePicker)
//============================================================================
// Method: IVtkTools_ShapePicker

View File

@@ -29,7 +29,8 @@ class vtkActorCollection;
class IVtkTools_EXPORT IVtkTools_ShapePicker : public vtkAbstractPropPicker
{
public:
vtkTypeMacro(IVtkTools_ShapePicker, vtkAbstractPropPicker);
vtkTypeMacro(IVtkTools_ShapePicker, vtkAbstractPropPicker)
static IVtkTools_ShapePicker* New();
//! Pick entities in the given point or area.

View File

@@ -23,7 +23,7 @@
#include <vtkIdTypeArray.h>
vtkStandardNewMacro(IVtkTools_SubPolyDataFilter);
vtkStandardNewMacro(IVtkTools_SubPolyDataFilter)
//================================================================
// Function : Constructor

View File

@@ -26,7 +26,8 @@
class IVtkTools_EXPORT IVtkTools_SubPolyDataFilter : public vtkPolyDataAlgorithm
{
public:
vtkTypeMacro(IVtkTools_SubPolyDataFilter,vtkPolyDataAlgorithm);
vtkTypeMacro(IVtkTools_SubPolyDataFilter,vtkPolyDataAlgorithm)
static IVtkTools_SubPolyDataFilter *New();
void PrintSelf (std::ostream& theOs, vtkIndent theIndent);