avoid unused parameter compiler warnings

This commit is contained in:
Dane Springmeyer 2011-04-03 04:28:44 +00:00
parent 2160a49b3f
commit 9a27a68f4a
5 changed files with 21 additions and 21 deletions

View file

@ -68,7 +68,7 @@ namespace agg
*x = m_vertices[m_vertex];
*y = m_vertices[m_vertex + 1];
m_vertex += 2;
return (m_vertex == 2) ? path_cmd_move_to : m_cmd;
return (m_vertex == 2) ? (unsigned)path_cmd_move_to : m_cmd;
}
// Supplemantary functions. num_vertices() actually returns doubled

View file

@ -218,7 +218,7 @@ namespace agg
static AGG_INLINE void blend_pix(value_type* p,
unsigned cr, unsigned cg, unsigned cb,
unsigned alpha,
unsigned cover=0)
unsigned /*cover*/=0)
{
if(alpha == 0) return;
calc_type a = p[Order::A];
@ -1341,7 +1341,7 @@ namespace agg
// Dca' = (Da - Dca) * Sa + Dca.(1 - Sa)
// Da' = Sa + Da - Sa.Da
static AGG_INLINE void blend_pix(value_type* p,
unsigned sr, unsigned sg, unsigned sb,
unsigned /*sr*/, unsigned /*sg*/, unsigned /*sb*/,
unsigned sa, unsigned cover)
{
sa = (sa * cover + 255) >> 8;
@ -1612,7 +1612,7 @@ namespace agg
base_mask = color_type::base_mask
};
static AGG_INLINE void blend_pix(unsigned op, value_type* p,
static AGG_INLINE void blend_pix(unsigned /*op*/, value_type* p,
unsigned cr, unsigned cg, unsigned cb,
unsigned ca,
unsigned cover)
@ -1637,7 +1637,7 @@ namespace agg
base_mask = color_type::base_mask
};
static AGG_INLINE void blend_pix(unsigned op, value_type* p,
static AGG_INLINE void blend_pix(unsigned /*op*/, value_type* p,
unsigned cr, unsigned cg, unsigned cb,
unsigned ca,
unsigned cover)
@ -1667,7 +1667,7 @@ namespace agg
base_mask = color_type::base_mask
};
static AGG_INLINE void blend_pix(unsigned op, value_type* p,
static AGG_INLINE void blend_pix(unsigned /*op*/, value_type* p,
unsigned cr, unsigned cg, unsigned cb,
unsigned ca,
unsigned cover)
@ -2340,7 +2340,7 @@ namespace agg
void blend_from_color(const SrcPixelFormatRenderer& from,
const color_type& color,
int xdst, int ydst,
int xsrc, int ysrc,
int /*xsrc*/, int ysrc,
unsigned len,
int8u cover)
{
@ -2367,7 +2367,7 @@ namespace agg
void blend_from_lut(const SrcPixelFormatRenderer& from,
const color_type* color_lut,
int xdst, int ydst,
int xsrc, int ysrc,
int /*xsrc*/, int ysrc,
unsigned len,
int8u cover)
{
@ -2792,7 +2792,7 @@ namespace agg
void blend_from_color(const SrcPixelFormatRenderer& from,
const color_type& color,
int xdst, int ydst,
int xsrc, int ysrc,
int /*xsrc*/, int ysrc,
unsigned len,
int8u cover)
{
@ -2820,7 +2820,7 @@ namespace agg
void blend_from_lut(const SrcPixelFormatRenderer& from,
const color_type* color_lut,
int xdst, int ydst,
int xsrc, int ysrc,
int /*xsrc*/, int ysrc,
unsigned len,
int8u cover)
{

View file

@ -317,7 +317,7 @@ namespace agg
rasterizer_sl_no_clip() : m_x1(0), m_y1(0) {}
void reset_clipping() {}
void clip_box(coord_type x1, coord_type y1, coord_type x2, coord_type y2) {}
void clip_box(coord_type /*x1*/, coord_type /*y1*/, coord_type /*x2*/, coord_type /*y2*/) {}
void move_to(coord_type x1, coord_type y1) { m_x1 = x1; m_y1 = y1; }
template<class Rasterizer>