1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-09 13:22:24 +03:00

0024512: clang++ compiler complains about extra semicolon

Clang++ compiler emits warnings like these ones when parsing superfluous semicolons:
  .../src/OSD/OSD_MAllocHook.cxx:49:2: warning: extra ';' outside of a function is a C++11 extension [-Wc++11-extra-semi]
  .../src/ProjLib/ProjLib_ComputeApproxOnPolarSurface.cxx:317:30: warning: extra ';' after member function definition [-Wextra-semi]
This commit is contained in:
Denis Barbier
2014-01-02 22:54:45 +01:00
committed by bugmaster
parent 6aca4d3977
commit 5640d65355
17 changed files with 100 additions and 100 deletions

View File

@@ -71,7 +71,7 @@ class NCollection_BaseAllocator : public MMgt_TShared
protected:
//! Constructor - prohibited
NCollection_BaseAllocator(void) {};
NCollection_BaseAllocator(void) {}
private:
//! Copy constructor - prohibited

View File

@@ -36,7 +36,7 @@ class NCollection_HeapAllocator : public NCollection_BaseAllocator
protected:
//! Constructor - prohibited
NCollection_HeapAllocator(void) {};
NCollection_HeapAllocator(void) {}
private:
//! Copy constructor - prohibited

View File

@@ -44,7 +44,7 @@ namespace
// auxiliary dummy function used to get a place where break point can be set
inline void place_for_breakpoint() {}
#endif
};
}
#define MaxLookup 16

View File

@@ -79,7 +79,7 @@ public:
Element_t y() const { return v[1]; }
//! @return 2 components by their names in specified order (in GLSL-style)
NCOLLECTION_VEC_COMPONENTS_2D(x, y);
NCOLLECTION_VEC_COMPONENTS_2D(x, y)
//! Alias to 1st component as X coordinate in XY.
Element_t& x() { return v[0]; }

View File

@@ -105,12 +105,12 @@ public:
Element_t b() const { return v[2]; }
//! @return 2 components by their names in specified order (in GLSL-style)
NCOLLECTION_VEC_COMPONENTS_2D(x, y);
NCOLLECTION_VEC_COMPONENTS_2D(x, z);
NCOLLECTION_VEC_COMPONENTS_2D(y, z);
NCOLLECTION_VEC_COMPONENTS_2D(x, y)
NCOLLECTION_VEC_COMPONENTS_2D(x, z)
NCOLLECTION_VEC_COMPONENTS_2D(y, z)
//! @return 3 components by their names in specified order (in GLSL-style)
NCOLLECTION_VEC_COMPONENTS_3D(x, y, z);
NCOLLECTION_VEC_COMPONENTS_3D(x, y, z)
//! Alias to 1st component as X coordinate in XYZ.
Element_t& x() { return v[0]; }

View File

@@ -118,21 +118,21 @@ public:
Element_t a() const { return v[3]; }
//! @return 2 of XYZW components in specified order as vector in GLSL-style
NCOLLECTION_VEC_COMPONENTS_2D(x, y);
NCOLLECTION_VEC_COMPONENTS_2D(x, z);
NCOLLECTION_VEC_COMPONENTS_2D(x, w);
NCOLLECTION_VEC_COMPONENTS_2D(y, z);
NCOLLECTION_VEC_COMPONENTS_2D(y, w);
NCOLLECTION_VEC_COMPONENTS_2D(z, w);
NCOLLECTION_VEC_COMPONENTS_2D(x, y)
NCOLLECTION_VEC_COMPONENTS_2D(x, z)
NCOLLECTION_VEC_COMPONENTS_2D(x, w)
NCOLLECTION_VEC_COMPONENTS_2D(y, z)
NCOLLECTION_VEC_COMPONENTS_2D(y, w)
NCOLLECTION_VEC_COMPONENTS_2D(z, w)
//! @return 3 of XYZW components in specified order as vector in GLSL-style
NCOLLECTION_VEC_COMPONENTS_3D(x, y, z);
NCOLLECTION_VEC_COMPONENTS_3D(x, y, w);
NCOLLECTION_VEC_COMPONENTS_3D(x, z, w);
NCOLLECTION_VEC_COMPONENTS_3D(y, z, w);
NCOLLECTION_VEC_COMPONENTS_3D(x, y, z)
NCOLLECTION_VEC_COMPONENTS_3D(x, y, w)
NCOLLECTION_VEC_COMPONENTS_3D(x, z, w)
NCOLLECTION_VEC_COMPONENTS_3D(y, z, w)
//! @return RGB components as vector
NCOLLECTION_VEC_COMPONENTS_3D(r, g, b);
NCOLLECTION_VEC_COMPONENTS_3D(r, g, b)
//! Alias to 1st component as X coordinate in XYZW.
Element_t& x() { return v[0]; }