Coding - Fix GCC warnings (#975)

- Removed unnecessary reference qualifiers (`&`) from `gp_Dir` variable declarations in geometric evaluation classes
- Initialized previously uninitialized variables (`DuvBuf`, `anFDOpenMode`) to prevent undefined behavior
- Removed redundant `Standard_EXPORT` from deleted copy constructors
- Added explicit base class initialization in `EnumeratedThread` copy constructor
- Replaced C-style cast with `reinterpret_cast` in `Quantity_ColorRGBA` for type safety
This commit is contained in:
Pasukhin Dmitry
2026-01-02 14:34:45 +00:00
committed by GitHub
parent 372e9431e9
commit 825b0bd782
11 changed files with 51 additions and 50 deletions
@@ -128,7 +128,7 @@ IntImp_ConstIsoparametric IntImp_Int2S::Perform(const NCollection_Array1<double>
gp_Vec DPUV[4];
gp_Pnt P1, P2;
double Epsuv[4];
double DuvBuf[4];
double DuvBuf[4] = {};
NCollection_Array1<double> Duv(DuvBuf[0], 1, 4);
double UVd[4], UVf[4];
IntImp_ConstIsoparametric ChoixIso[4];
@@ -184,7 +184,7 @@ public:
Standard_EXPORT void Destroy();
private:
Standard_EXPORT BRepClass3d_SolidExplorer(const BRepClass3d_SolidExplorer& Oth) = delete;
BRepClass3d_SolidExplorer(const BRepClass3d_SolidExplorer& Oth) = delete;
protected:
Standard_EXPORT TopAbs_State ClassifyUVPoint(const IntCurvesFace_Intersector& theIntersector,