fix compiler warnings after r1111 (adding png256 alpha support)

This commit is contained in:
Dane Springmeyer 2009-04-30 17:38:32 +00:00
parent 618fa0d2c0
commit 263674d3d9
2 changed files with 3 additions and 3 deletions

View file

@ -114,8 +114,8 @@ namespace mapnik {
: max_colors_(max_colors), : max_colors_(max_colors),
colors_(0), colors_(0),
leaf_level_(InsertPolicy::MAX_LEVELS), leaf_level_(InsertPolicy::MAX_LEVELS),
root_(new node()), has_alfa_(false),
has_alfa_(false) root_(new node())
{} {}
~octree() { delete root_;} ~octree() { delete root_;}

View file

@ -184,7 +184,7 @@ namespace mapnik {
if (hasAlfa) if (hasAlfa)
{ {
byte trans[] = {0,0,0,0}; byte trans[] = {0,0,0,0};
png_color_16p unused; //png_color_16p unused;
png_set_tRNS(png_ptr, info_ptr, (png_bytep)trans, 1, NULL); png_set_tRNS(png_ptr, info_ptr, (png_bytep)trans, 1, NULL);
} }