1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-05 18:16:23 +03:00

0026177: Coding rules - eliminate -Wdeprecated-register CLang warnings

This commit is contained in:
kgv 2015-04-30 17:19:19 +03:00 committed by bugmaster
parent 11bf7051d9
commit a7f510bfae
3 changed files with 11 additions and 15 deletions

View File

@ -10157,15 +10157,13 @@ void AdvApp2Var_MathBase::mmwprcs_(doublereal *epsil1,
doublereal AdvApp2Var_MathBase::pow__di (doublereal *x,
integer *n)
{
register integer ii ;
doublereal result ;
integer absolute ;
result = 1.0e0 ;
if ( *n > 0 ) {absolute = *n;}
else {absolute = -*n;}
/* System generated locals */
for(ii = 0 ; ii < absolute ; ii++) {
for(integer ii = 0 ; ii < absolute ; ii++) {
result *= *x ;
}
if (*n < 0) {
@ -10216,14 +10214,13 @@ integer pow__ii(integer *x,
integer *n)
{
register integer ii ;
integer result ;
integer absolute ;
result = 1 ;
if ( *n > 0 ) {absolute = *n;}
else {absolute = -*n;}
/* System generated locals */
for(ii = 0 ; ii < absolute ; ii++) {
for(integer ii = 0 ; ii < absolute ; ii++) {
result *= *x ;
}
if (*n < 0) {

View File

@ -2423,18 +2423,18 @@ int AdvApp2Var_SysBase::mcrfill_(integer *size,
void *tout)
{
register char *jmin=static_cast<char*> (tin);
register char *jmout=static_cast<char*> (tout);
char *jmin=static_cast<char*> (tin);
char *jmout=static_cast<char*> (tout);
if (mcrfill_ABS(jmout-jmin) >= *size)
memcpy( tout, tin, *size);
else if (tin > tout)
{
register integer n = *size;
integer n = *size;
while (n-- > 0) *jmout++ = *jmin++;
}
else
{
register integer n = *size;
integer n = *size;
jmin+=n;
jmout+=n;
while (n-- > 0) *--jmout = *--jmin;

View File

@ -998,9 +998,8 @@ void GeomLib_CurveOnSurfaceEvaluator::Evaluate (Standard_Integer *,/*Dimension*/
Standard_Integer *DerivativeRequest,
Standard_Real *Result,// [Dimension]
Standard_Integer *ReturnCode)
{
register Standard_Integer ii ;
gp_Pnt Point ;
{
gp_Pnt Point;
//Gestion des positionnements gauche / droite
if ((DebutFin[0] != FirstParam) || (DebutFin[1] != LastParam))
@ -1015,21 +1014,21 @@ void GeomLib_CurveOnSurfaceEvaluator::Evaluate (Standard_Integer *,/*Dimension*/
{
TrimCurve->D0((*Parameter), Point) ;
for (ii = 0 ; ii < 3 ; ii++)
for (Standard_Integer ii = 0 ; ii < 3 ; ii++)
Result[ii] = Point.Coord(ii + 1);
}
if (*DerivativeRequest == 1)
{
gp_Vec Vector;
TrimCurve->D1((*Parameter), Point, Vector);
for (ii = 0 ; ii < 3 ; ii++)
for (Standard_Integer ii = 0 ; ii < 3 ; ii++)
Result[ii] = Vector.Coord(ii + 1) ;
}
if (*DerivativeRequest == 2)
{
gp_Vec Vector, VecBis;
TrimCurve->D2((*Parameter), Point, VecBis, Vector);
for (ii = 0 ; ii < 3 ; ii++)
for (Standard_Integer ii = 0 ; ii < 3 ; ii++)
Result[ii] = Vector.Coord(ii + 1) ;
}
ReturnCode[0] = 0;