artemp/trac2github — Issue #832: solaris warning around png usage - perhaps a misusage?
Author: artemp
Created: 2011-10-09 20:52:39+00:00
State: open
Labels: Core_Library

{{{
"include/mapnik/png_io.hpp", line 97: Warning (Anachronism): Formal argument write_data_fn of type extern "C" void(*)(png_struct_def*,unsigned char*,unsigned long) in call to png_set_write_fn(png_struct_def*, void*, extern "C" void(*)(png_struct_def*,unsigned char*,unsigned long), extern "C" void(*)(png_struct_def*)) is being passed void(*)(png_struct_def*,unsigned char*,unsigned long).
"src/image_util.cpp", line 83: Where: While instantiating "mapnik::save_as_png>(std::ostream &, const mapnik::ImageData&)".
"src/image_util.cpp", line 83: Where: Instantiated from mapnik::save_to_stream>(const mapnik::ImageData&, std::ostream &, const std::string &).
"src/image_util.cpp", line 70: Where: Instantiated from mapnik::save_to_file>(const mapnik::ImageData&, const std::string &, const std::string &).
"src/image_util.cpp", line 238: Where: Instantiated from non-template code.
"include/mapnik/png_io.hpp", line 97: Warning (Anachronism): Formal argument output_flush_fn of type extern "C" void(*)(png_struct_def*) in call to png_set_write_fn(png_struct_def*, void*, extern "C" void(*)(png_struct_def*,unsigned char*,unsigned long), extern "C" void(*)(png_struct_def*)) is being passed void(*)(png_struct_def*).
"src/image_util.cpp", line 83: Where: While instantiating "mapnik::save_as_png>(std::ostream &, const mapnik::ImageData&)".
"src/image_util.cpp", line 83: Where: Instantiated from mapnik::save_to_stream>(const mapnik::ImageData&, std::ostream &, const std::string &).
"src/image_util.cpp", line 70: Where: Instantiated from mapnik::save_to_file>(const mapnik::ImageData&, const std::string &, const std::string &).
"src/image_util.cpp", line 238: Where: Instantiated from non-template code.
}}}