Skip to content

Commit e8fe99a

Browse files
committed
Remove register storage class from Agg files.
This storage class has been removed from C++17, and causes a warning when compiling with latest gcc: ``` warning: ISO C++17 does not allow ‘register’ storage class specifier ```
1 parent e6479bd commit e8fe99a

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

extern/agg24-svn/include/agg_basics.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ namespace agg
228228
{
229229
AGG_INLINE static unsigned mul(unsigned a, unsigned b)
230230
{
231-
register unsigned q = a * b + (1 << (Shift-1));
231+
unsigned q = a * b + (1 << (Shift-1));
232232
return (q + (q >> Shift)) >> Shift;
233233
}
234234
};

extern/agg24-svn/include/agg_image_accessors.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,8 +174,8 @@ namespace agg
174174
private:
175175
AGG_INLINE const int8u* pixel() const
176176
{
177-
register int x = m_x;
178-
register int y = m_y;
177+
int x = m_x;
178+
int y = m_y;
179179
if(x < 0) x = 0;
180180
if(y < 0) y = 0;
181181
if(x >= (int)m_pixf->width()) x = m_pixf->width() - 1;

extern/agg24-svn/include/agg_trans_affine.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -292,25 +292,25 @@ namespace agg
292292
//------------------------------------------------------------------------
293293
inline void trans_affine::transform(double* x, double* y) const
294294
{
295-
register double tmp = *x;
295+
double tmp = *x;
296296
*x = tmp * sx + *y * shx + tx;
297297
*y = tmp * shy + *y * sy + ty;
298298
}
299299

300300
//------------------------------------------------------------------------
301301
inline void trans_affine::transform_2x2(double* x, double* y) const
302302
{
303-
register double tmp = *x;
303+
double tmp = *x;
304304
*x = tmp * sx + *y * shx;
305305
*y = tmp * shy + *y * sy;
306306
}
307307

308308
//------------------------------------------------------------------------
309309
inline void trans_affine::inverse_transform(double* x, double* y) const
310310
{
311-
register double d = determinant_reciprocal();
312-
register double a = (*x - tx) * d;
313-
register double b = (*y - ty) * d;
311+
double d = determinant_reciprocal();
312+
double a = (*x - tx) * d;
313+
double b = (*y - ty) * d;
314314
*x = a * sy - b * shx;
315315
*y = b * sx - a * shy;
316316
}

extern/agg24-svn/src/platform/win32/agg_platform_support.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1480,7 +1480,7 @@ namespace agg
14801480
tok.len = 0;
14811481
if(m_src_string == 0 || m_start == -1) return tok;
14821482

1483-
register const char *pstr = m_src_string + m_start;
1483+
const char *pstr = m_src_string + m_start;
14841484

14851485
if(*pstr == 0)
14861486
{

0 commit comments

Comments
 (0)