artemp/mapnik — Issue #225: OSM plugin compiler warnings
Author: artemp
Created: 2011-10-11 16:05:54+00:00
State: open
Labels: Scons_Build_Scripts

Lots of warnings building the OSM plugin via SCons.

Nick W - could you try to fix and test further?

These are on mac os 10.5...

{{{
g++ -o plugins/input/osm/osmparser.os -c -DHAVE_LIBXML2 -DHAVE_CAIRO -DHAVE_PYCAIRO -ansi -Wall -ftemplate-depth-100 -DDARWIN -DBOOST_SPIRIT_THREADSAFE -DMAPNIK_THREADSAFE -DOSX_LEOPARD -O0 -fno-inline -g -DDEBUG -DMAPNIK_DEBUG -fPIC -DXTHREADS -Iagg/include -Itinyxml -Iinclude -I. -I/usr/include -I/usr/local/pgsql/include -I/opt/local/include/freetype2 -I/opt/local/include -I/opt/local/include/libxml2 -I/opt/local/include/cairomm-1.0 -I/opt/local/include/cairo -I/opt/local/include/pixman-1 -I/opt/local/include/libpng12 -I/usr/X11/include -I/opt/local/include/pycairo plugins/input/osm/osmparser.cpp
plugins/input/osm/osm.h:42: warning: 'struct osm_item' has virtual functions but non-virtual destructor
plugins/input/osm/osm.h:50: warning: 'struct osm_node' has virtual functions but non-virtual destructor
plugins/input/osm/osm.h:56: warning: 'struct osm_way' has virtual functions but non-virtual destructor
plugins/input/osm/osmparser.cpp: In static member function 'static void osmparser::startElement(xmlTextReader*, const xmlChar*)':
plugins/input/osm/osmparser.cpp:48: warning: unused variable 'count'
plugins/input/osm/osmparser.cpp:39: warning: unused variable 'lat'
plugins/input/osm/osmparser.cpp:39: warning: unused variable 'lon'
plugins/input/osm/osmparser.cpp:40: warning: unused variable 'from'
plugins/input/osm/osmparser.cpp:40: warning: unused variable 'to'
g++ -o plugins/input/osm/osm.os -c -DHAVE_LIBXML2 -DHAVE_CAIRO -DHAVE_PYCAIRO -ansi -Wall -ftemplate-depth-100 -DDARWIN -DBOOST_SPIRIT_THREADSAFE -DMAPNIK_THREADSAFE -DOSX_LEOPARD -O0 -fno-inline -g -DDEBUG -DMAPNIK_DEBUG -fPIC -DXTHREADS -Iagg/include -Itinyxml -Iinclude -I. -I/usr/include -I/usr/local/pgsql/include -I/opt/local/include/freetype2 -I/opt/local/include -I/opt/local/include/libxml2 -I/opt/local/include/cairomm-1.0 -I/opt/local/include/cairo -I/opt/local/include/pixman-1 -I/opt/local/include/libpng12 -I/usr/X11/include -I/opt/local/include/pycairo plugins/input/osm/osm.cpp
plugins/input/osm/osm.h:42: warning: 'struct osm_item' has virtual functions but non-virtual destructor
plugins/input/osm/osm.h:50: warning: 'struct osm_node' has virtual functions but non-virtual destructor
plugins/input/osm/osm.h:56: warning: 'struct osm_way' has virtual functions but non-virtual destructor
plugins/input/osm/osm.cpp: In destructor 'osm_dataset::~osm_dataset()':
plugins/input/osm/osm.cpp:26: warning: comparison between signed and unsigned integer expressions
plugins/input/osm/osm.cpp:28: warning: comparison between signed and unsigned integer expressions
plugins/input/osm/osm.cpp: In member function 'std::string osm_dataset::to_string()':
plugins/input/osm/osm.cpp:36: warning: comparison between signed and unsigned integer expressions
plugins/input/osm/osm.cpp:40: warning: comparison between signed and unsigned integer expressions
plugins/input/osm/osm.cpp: In member function 'bounds osm_dataset::get_bounds()':
plugins/input/osm/osm.cpp:50: warning: comparison between signed and unsigned integer expressions
plugins/input/osm/osm.cpp: In member function 'std::set, std::allocator > osm_dataset::get_keys()':
plugins/input/osm/osm.cpp:105: warning: comparison between signed and unsigned integer expressions
plugins/input/osm/osm.cpp:113: warning: comparison between signed and unsigned integer expressions
plugins/input/osm/osm.cpp: In member function 'virtual std::string osm_way::to_string()':
plugins/input/osm/osm.cpp:152: warning: comparison between signed and unsigned integer expressions
plugins/input/osm/osm.cpp: In member function 'bounds osm_way::get_bounds()':
plugins/input/osm/osm.cpp:166: warning: comparison between signed and unsigned integer expressions
plugins/input/osm/osm.cpp: In member function 'bool osm_way::is_polygon()':
plugins/input/osm/osm.cpp:182: warning: comparison between signed and unsigned integer expressions
g++ -o plugins/input/osm/osm_datasource.os -c -DHAVE_LIBXML2 -DHAVE_CAIRO -DHAVE_PYCAIRO -ansi -Wall -ftemplate-depth-100 -DDARWIN -DBOOST_SPIRIT_THREADSAFE -DMAPNIK_THREADSAFE -DOSX_LEOPARD -O0 -fno-inline -g -DDEBUG -DMAPNIK_DEBUG -fPIC -DXTHREADS -Iagg/include -Itinyxml -Iinclude -I. -I/usr/include -I/usr/local/pgsql/include -I/opt/local/include/freetype2 -I/opt/local/include -I/opt/local/include/libxml2 -I/opt/local/include/cairomm-1.0 -I/opt/local/include/cairo -I/opt/local/include/pixman-1 -I/opt/local/include/libpng12 -I/usr/X11/include -I/opt/local/include/pycairo plugins/input/osm/osm_datasource.cpp
plugins/input/osm/osm.h:42: warning: 'struct osm_item' has virtual functions but non-virtual destructor
plugins/input/osm/osm.h:50: warning: 'struct osm_node' has virtual functions but non-virtual destructor
plugins/input/osm/osm.h:56: warning: 'struct osm_way' has virtual functions but non-virtual destructor
g++ -o plugins/input/osm/osm_featureset.os -c -DHAVE_LIBXML2 -DHAVE_CAIRO -DHAVE_PYCAIRO -ansi -Wall -ftemplate-depth-100 -DDARWIN -DBOOST_SPIRIT_THREADSAFE -DMAPNIK_THREADSAFE -DOSX_LEOPARD -O0 -fno-inline -g -DDEBUG -DMAPNIK_DEBUG -fPIC -DXTHREADS -Iagg/include -Itinyxml -Iinclude -I. -I/usr/include -I/usr/local/pgsql/include -I/opt/local/include/freetype2 -I/opt/local/include -I/opt/local/include/libxml2 -I/opt/local/include/cairomm-1.0 -I/opt/local/include/cairo -I/opt/local/include/pixman-1 -I/opt/local/include/libpng12 -I/usr/X11/include -I/opt/local/include/pycairo plugins/input/osm/osm_featureset.cpp
plugins/input/osm/osm.h:42: warning: 'struct osm_item' has virtual functions but non-virtual destructor
plugins/input/osm/osm.h:50: warning: 'struct osm_node' has virtual functions but non-virtual destructor
plugins/input/osm/osm.h:56: warning: 'struct osm_way' has virtual functions but non-virtual destructor
plugins/input/osm/osm_featureset.hpp: In constructor 'osm_featureset::osm_featureset(const filterT&, osm_dataset*, const std::set, std::allocator >&, const std::string&) [with filterT = mapnik::filter_in_box]':
plugins/input/osm/osm_featureset.cpp:143: instantiated from here
plugins/input/osm/osm_featureset.hpp:51: warning: 'osm_featureset::attribute_names_' will be initialized after
plugins/input/osm/osm_featureset.hpp:50: warning: 'osm_dataset* osm_featureset::dataset_'
plugins/input/osm/osm_featureset.cpp:43: warning: when initialized here
plugins/input/osm/osm_featureset.cpp: In member function 'mapnik::feature_ptr osm_featureset::next() [with filterT = mapnik::filter_in_box]':
plugins/input/osm/osm_featureset.cpp:143: instantiated from here
plugins/input/osm/osm_featureset.cpp:104: warning: comparison between signed and unsigned integer expressions
plugins/input/osm/osm_featureset.hpp: In constructor 'osm_featureset::osm_featureset(const filterT&, osm_dataset*, const std::set, std::allocator >&, const std::string&) [with filterT = mapnik::filter_at_point]':
plugins/input/osm/osm_featureset.cpp:144: instantiated from here
plugins/input/osm/osm_featureset.hpp:51: warning: 'osm_featureset::attribute_names_' will be initialized after
plugins/input/osm/osm_featureset.hpp:50: warning: 'osm_dataset* osm_featureset::dataset_'
plugins/input/osm/osm_featureset.cpp:43: warning: when initialized here
plugins/input/osm/osm_featureset.cpp: In member function 'mapnik::feature_ptr osm_featureset::next() [with filterT = mapnik::filter_at_point]':
plugins/input/osm/osm_featureset.cpp:144: instantiated from here
plugins/input/osm/osm_featureset.cpp:104: warning: comparison between signed and unsigned integer expressions
g++ -o plugins/input/osm/osm.input -Wl,-framework,CoreServices -Wl,-framework,ApplicationServices -dynamiclib plugins/input/osm/osmparser.os plugins/input/osm/osm.os plugins/input/osm/osm_datasource.os plugins/input/osm/osm_featureset.os -Lagg -Lsrc -L/usr/lib -L/usr/local/pgsql/lib -L/opt/local/lib -L/usr/X11R6/lib -L/usr/X11/lib -lxml2 -lmapnik -licuuc -licudata
}}}