Removed 'register' storage class compiler warnings

Change-Id: Iba89a9d0845bf7e816983f903281d33e273f6e35
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5558
Reviewed-by: X512 <[email protected]>
Reviewed-by: Adrien Destugues <[email protected]>
Tested-by: Commit checker robot <[email protected]>
This commit is contained in:
Michael Brumbelow
2022-09-12 14:03:28 +00:00
committed by Adrien Destugues
parent 134fa6111f
commit 950809231f
18 changed files with 147 additions and 148 deletions
+2 -2
View File
@@ -169,8 +169,8 @@ namespace agg
private:
AGG_INLINE const int8u* pixel() const
{
register int x = m_x;
register int y = m_y;
int x = m_x;
int y = m_y;
if(x < 0) x = 0;
if(y < 0) y = 0;
if(x >= (int)m_pixf->width()) x = m_pixf->width() - 1;
+5 -5
View File
@@ -278,7 +278,7 @@ namespace agg
//------------------------------------------------------------------------
inline void trans_affine::transform(double* x, double* y) const
{
register double tx = *x;
double tx = *x;
*x = tx * m0 + *y * m2 + m4;
*y = tx * m1 + *y * m3 + m5;
}
@@ -286,7 +286,7 @@ namespace agg
//------------------------------------------------------------------------
inline void trans_affine::transform_2x2(double* x, double* y) const
{
register double tx = *x;
double tx = *x;
*x = tx * m0 + *y * m2;
*y = tx * m1 + *y * m3;
}
@@ -294,9 +294,9 @@ namespace agg
//------------------------------------------------------------------------
inline void trans_affine::inverse_transform(double* x, double* y) const
{
register double d = determinant();
register double a = (*x - m4) * d;
register double b = (*y - m5) * d;
double d = determinant();
double a = (*x - m4) * d;
double b = (*y - m5) * d;
*x = a * m3 - b * m2;
*y = b * m0 - a * m1;
}
+12 -12
View File
@@ -111,7 +111,7 @@ class BRegion::Support {
BRegion* pReg,
clipping_rect* r1,
clipping_rect* r1End,
register clipping_rect* r2,
clipping_rect* r2,
clipping_rect* r2End,
int top,
int bottom);
@@ -126,26 +126,26 @@ class BRegion::Support {
static void miRegionOp(BRegion* newReg,
const BRegion* reg1, const BRegion* reg2,
int (*overlapFunc)(
register BRegion* pReg,
register clipping_rect* r1,
BRegion* pReg,
clipping_rect* r1,
clipping_rect* r1End,
register clipping_rect* r2,
clipping_rect* r2,
clipping_rect* r2End,
int top,
int bottom),
int (*nonOverlap1Func)(
register BRegion* pReg,
register clipping_rect* r,
BRegion* pReg,
clipping_rect* r,
clipping_rect* rEnd,
register int top,
register int bottom),
int top,
int bottom),
int (*nonOverlap2Func)(
register BRegion* pReg,
register clipping_rect* r,
BRegion* pReg,
clipping_rect* r,
clipping_rect* rEnd,
register int top,
register int bottom));
int top,
int bottom));
};