mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-05-01 10:26:12 +03:00
0027643: Coding rules - eliminate GCC warning -Wmaybe-uninitialized
This commit is contained in:
parent
04be500328
commit
576e306647
@ -167,7 +167,7 @@ static void AdvCompute(CPnts_AbscissaPoint& theComputer,
|
|||||||
Standard_Real& Ui,
|
Standard_Real& Ui,
|
||||||
const Standard_Real EPSILON)
|
const Standard_Real EPSILON)
|
||||||
{
|
{
|
||||||
Standard_Real Ratio;
|
Standard_Real Ratio = 1.0;
|
||||||
GCPnts_AbscissaType Type = computeType(C,Ratio);
|
GCPnts_AbscissaType Type = computeType(C,Ratio);
|
||||||
|
|
||||||
switch (Type) {
|
switch (Type) {
|
||||||
@ -312,7 +312,7 @@ Standard_Real GCPnts_AbscissaPoint::Length(const TheCurve& C,
|
|||||||
const Standard_Real U1,
|
const Standard_Real U1,
|
||||||
const Standard_Real U2)
|
const Standard_Real U2)
|
||||||
{
|
{
|
||||||
Standard_Real Ratio;
|
Standard_Real Ratio = 1.0;
|
||||||
GCPnts_AbscissaType Type = computeType(C,Ratio);
|
GCPnts_AbscissaType Type = computeType(C,Ratio);
|
||||||
switch (Type) {
|
switch (Type) {
|
||||||
|
|
||||||
@ -353,7 +353,7 @@ Standard_Real GCPnts_AbscissaPoint::Length(const TheCurve& C,
|
|||||||
const Standard_Real U2,
|
const Standard_Real U2,
|
||||||
const Standard_Real Tol)
|
const Standard_Real Tol)
|
||||||
{
|
{
|
||||||
Standard_Real Ratio;
|
Standard_Real Ratio = 1.0;
|
||||||
GCPnts_AbscissaType Type = computeType(C,Ratio);
|
GCPnts_AbscissaType Type = computeType(C,Ratio);
|
||||||
switch (Type) {
|
switch (Type) {
|
||||||
|
|
||||||
|
@ -412,7 +412,7 @@ void GeomFill_SectionPlacement::Perform(const Handle(Adaptor3d_HCurve)& Path,
|
|||||||
PathParam = Path->FirstParameter();
|
PathParam = Path->FirstParameter();
|
||||||
SecParam = myAdpSection.FirstParameter();
|
SecParam = myAdpSection.FirstParameter();
|
||||||
|
|
||||||
Standard_Real distaux, taux, alpha;
|
Standard_Real distaux, taux = 0.0, alpha;
|
||||||
gp_Pnt PonPath, PonSec, P;
|
gp_Pnt PonPath, PonSec, P;
|
||||||
gp_Vec VRef, dp1;
|
gp_Vec VRef, dp1;
|
||||||
VRef.SetXYZ(TheAxe.Direction().XYZ());
|
VRef.SetXYZ(TheAxe.Direction().XYZ());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user