avoid various compiler warnings

This commit is contained in:
Dane Springmeyer 2011-04-03 04:30:32 +00:00
parent 2bcb0c7926
commit 49c011a48a
5 changed files with 13 additions and 10 deletions

View file

@ -102,9 +102,9 @@ public:
void process(glyph_symbolizer const& sym,
Feature const& feature,
proj_transform const& prj_trans);
inline bool process(rule::symbolizers const& syms,
Feature const& feature,
proj_transform const& prj_trans)
inline bool process(rule::symbolizers const& /*syms*/,
Feature const& /*feature*/,
proj_transform const& /*prj_trans*/)
{
// agg renderer doesn't support processing of multiple symbolizers.
return false;

View file

@ -118,12 +118,12 @@ public:
void process(glyph_symbolizer const& sym,
Feature const& feature,
proj_transform const& prj_trans);
inline bool process(rule::symbolizers const& syms,
Feature const& feature,
proj_transform const& prj_trans)
inline bool process(rule::symbolizers const& /*syms*/,
Feature const& /*feature*/,
proj_transform const& /*prj_trans*/)
{
// cairo renderer doesn't support processing of multiple symbolizers.
return false;
// cairo renderer doesn't support processing of multiple symbolizers.
return false;
};
protected:
void render_marker(const int x, const int y, marker &marker, const agg::trans_affine & mtx, double opacity=1.0);

View file

@ -492,6 +492,8 @@ struct text_renderer : private boost::noncopyable
private:
// unused currently, stroker is the new method for drawing halos
/*
void render_halo(FT_Bitmap *bitmap,unsigned rgba,int x,int y,int radius)
{
int x_max=x+bitmap->width;
@ -512,6 +514,7 @@ private:
}
}
}
*/
void render_bitmap(FT_Bitmap *bitmap,unsigned rgba,int x,int y)
{

View file

@ -204,7 +204,7 @@ void reduce_4 (T const& in, image_data_8 & out, octree<rgb> trees[], unsigned li
// 1-bit but only one color.
template <typename T>
void reduce_1(T const&, image_data_8 & out, octree<rgb> trees[], unsigned limits[], std::vector<unsigned> & alpha)
void reduce_1(T const&, image_data_8 & out, octree<rgb> /*trees*/[], unsigned /*limits*/[], std::vector<unsigned> & /*alpha*/)
{
out.set(0); // only one color!!!
}

View file

@ -886,7 +886,7 @@ public:
{
return m_vertices.size() ?
m_vertices[m_vertices.size() - 1].cmd :
path_cmd_stop;
(unsigned)path_cmd_stop;
}
unsigned last_vertex(double* x, double* y) const