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, void process(glyph_symbolizer const& sym,
Feature const& feature, Feature const& feature,
proj_transform const& prj_trans); proj_transform const& prj_trans);
inline bool process(rule::symbolizers const& syms, inline bool process(rule::symbolizers const& /*syms*/,
Feature const& feature, Feature const& /*feature*/,
proj_transform const& prj_trans) proj_transform const& /*prj_trans*/)
{ {
// agg renderer doesn't support processing of multiple symbolizers. // agg renderer doesn't support processing of multiple symbolizers.
return false; return false;

View file

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

View file

@ -492,6 +492,8 @@ struct text_renderer : private boost::noncopyable
private: 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) void render_halo(FT_Bitmap *bitmap,unsigned rgba,int x,int y,int radius)
{ {
int x_max=x+bitmap->width; int x_max=x+bitmap->width;
@ -512,6 +514,7 @@ private:
} }
} }
} }
*/
void render_bitmap(FT_Bitmap *bitmap,unsigned rgba,int x,int y) 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. // 1-bit but only one color.
template <typename T> 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!!! out.set(0); // only one color!!!
} }

View file

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