mapnik-org/mapnik — Issue #132: Compiler warning on Ubuntu 8.04
Author: artemp
Created: 2011-10-11 07:37:26+00:00
State: open
Labels: Scons_Build_Scripts

A few compiler warnings when building mapnik from svn r.750 on ubuntu 8.04:

g++ -o bindings/python/python_cairo.os -c -DHAVE_CAIRO -DBOOST_PROPERTY_TREE_XML_PARSER_TINYXML -DTIXML_USE_STL -DHAVE_PYCAIRO -ansi -Wall -pthread -ftemplate-depth-100 -DLINUX -DBOOST_SPIRIT_THREADSAFE -DMAPNIK_THREADSAFE -O2 -finline-functions -Wno-inline -DNDEBUG -fPIC -I/usr/include/python2.5 -Iagg/include -Itinyxml -Iinclude -I. -I/usr/include -I/usr/local/include -I/usr/include/freetype2 -I/usr/include/cairomm-1.0 -I/usr/include/cairo -I/usr/include/libpng12 -I/usr/include/pixman-1 -I/usr/include/pycairo bindings/python/python_cairo.cpp
bindings/python/python_cairo.cpp: In function 'void register_cairo()':
bindings/python/python_cairo.cpp:47: warning: deprecated conversion from string constant to 'char*'
bindings/python/python_cairo.cpp:47: warning: deprecated conversion from string constant to 'char*'

g++ -o src/point_symbolizer.os -c -DHAVE_CAIRO -DBOOST_PROPERTY_TREE_XML_PARSER_TINYXML -DTIXML_USE_STL -DHAVE_PYCAIRO -ansi -Wall -pthread -ftemplate-depth-100 -DLINUX -DBOOST_SPIRIT_THREADSAFE -DMAPNIK_THREADSAFE -O2 -finline-functions -Wno-inline -DNDEBUG -fPIC -Iagg/include -Itinyxml -Iinclude -I. -I/usr/include -I/usr/local/include -I/usr/include/freetype2 -I/usr/include/cairomm-1.0 -I/usr/include/cairo -I/usr/include/libpng12 -I/usr/include/pixman-1 -I/usr/include/pycairo src/point_symbolizer.cpp
include/mapnik/point_symbolizer.hpp: In constructor 'mapnik::point_symbolizer::point_symbolizer()':
include/mapnik/point_symbolizer.hpp:54: warning: 'mapnik::point_symbolizer::overlap_' will be initialized after
include/mapnik/point_symbolizer.hpp:53: warning: 'float mapnik::point_symbolizer::opacity_'
src/point_symbolizer.cpp:36: warning: when initialized here
include/mapnik/point_symbolizer.hpp: In constructor 'mapnik::point_symbolizer::point_symbolizer(const std::string&, const std::string&, unsigned int, unsigned int)':
include/mapnik/point_symbolizer.hpp:54: warning: 'mapnik::point_symbolizer::overlap_' will be initialized after
include/mapnik/point_symbolizer.hpp:53: warning: 'float mapnik::point_symbolizer::opacity_'
src/point_symbolizer.cpp:47: warning: when initialized here
include/mapnik/point_symbolizer.hpp: In copy constructor 'mapnik::point_symbolizer::point_symbolizer(const mapnik::point_symbolizer&)':
include/mapnik/point_symbolizer.hpp:54: warning: 'mapnik::point_symbolizer::overlap_' will be initialized after
include/mapnik/point_symbolizer.hpp:53: warning: 'float mapnik::point_symbolizer::opacity_'
src/point_symbolizer.cpp:53: warning: when initialized here