artemp/tickets2issues — Issue #521: Compiler warnings on Ubuntu Karmic
Author: artemp
Created: 2011-10-11 15:22:49+00:00
State: open
Labels: Core_Library

with:

{{{
#!sh
$ g++ -v
Using built-in specs.
Target: i486-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu 4.4.1-4ubuntu7' --with-bugurl=file:///usr/share/doc/gcc-4.4/README.Bugs --enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --enable-shared --enable-multiarch --enable-linker-build-id --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.4 --program-suffix=-4.4 --enable-nls --enable-clocale=gnu --enable-libstdcxx-debug --enable-mpfr --enable-objc-gc --enable-targets=all --disable-werror --with-arch-32=i486 --with-tune=generic --enable-checking=release --build=i486-linux-gnu --host=i486-linux-gnu --target=i486-linux-gnu
Thread model: posix
gcc version 4.4.1 (Ubuntu 4.4.1-4ubuntu7)
}}}

{{{
#!sh
g++ -o bindings/python/mapnik_rule.os -c -DHAVE_LIBXML2 -DHAVE_PYCAIRO -ansi -Wall -pthread -ftemplate-depth-100 -DLINUX -DBOOST_SPIRIT_THREADSAFE -DMAPNIK_THREADSAFE -DSVN_REVISION=1339 -O2 -finline-functions -Wno-inline -DNDEBUG -fPIC -D_REENTRANT -I/usr/include/python2.6 -Iagg/include -Iinclude -I. -I/usr/include -I/usr/local/include -I/usr/include/freetype2 -I/usr/include/libxml2 -I/usr/include/postgresql -I/usr/include/pycairo -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/directfb -I/usr/include/libpng12 bindings/python/mapnik_rule.cpp
In file included from /usr/include/boost/python/implicit.hpp:10,
from /usr/include/boost/python.hpp:33,
from bindings/python/mapnik_rule.cpp:24:
include/mapnik/point_symbolizer.hpp: In static member function ‘static void boost::python::converter::implicit::construct(PyObject*, boost::python::converter::rvalue_from_python_stage1_data*) [with Source = mapnik::point_symbolizer, Target = boost::variant]’:
include/mapnik/point_symbolizer.hpp:35: warning: dereferencing pointer ‘p.1290’ does break strict-aliasing rules
/usr/include/boost/python/detail/destroy.hpp:90: note: initialized from here
include/mapnik/line_pattern_symbolizer.hpp: In static member function ‘static void boost::python::converter::implicit::construct(PyObject*, boost::python::converter::rvalue_from_python_stage1_data*) [with Source = mapnik::line_pattern_symbolizer, Target = boost::variant]’:
include/mapnik/line_pattern_symbolizer.hpp:35: warning: dereferencing pointer ‘p.1296’ does break strict-aliasing rules
/usr/include/boost/python/detail/destroy.hpp:90: note: initialized from here
include/mapnik/polygon_pattern_symbolizer.hpp: In static member function ‘static void boost::python::converter::implicit::construct(PyObject*, boost::python::converter::rvalue_from_python_stage1_data*) [with Source = mapnik::polygon_pattern_symbolizer, Target = boost::variant]’:
include/mapnik/polygon_pattern_symbolizer.hpp:35: warning: dereferencing pointer ‘p.1305’ does break strict-aliasing rules
/usr/include/boost/python/detail/destroy.hpp:90: note: initialized from here
include/mapnik/symbolizer.hpp: In static member function ‘static void boost::python::converter::implicit::construct(PyObject*, boost::python::converter::rvalue_from_python_stage1_data*) [with Source = mapnik::shield_symbolizer, Target = boost::variant]’:
include/mapnik/symbolizer.hpp:40: warning: dereferencing pointer ‘p.1311’ does break strict-aliasing rules
include/mapnik/shield_symbolizer.hpp:38: warning: dereferencing pointer ‘p.1311’ does break strict-aliasing rules
/usr/include/boost/python/detail/destroy.hpp:90: note: initialized from here
g++ -o bindings/python/mapnik_image_view.os -c -DHAVE_LIBXML2 -DHAVE_PYCAIRO -ansi -Wall -pthread -ftemplate-depth-100 -DLINUX -DBOOST_SPIRIT_THREADSAFE -DMAPNIK_THREADSAFE -DSVN_REVISION=1339 -O2 -finline-functions -Wno-inline -DNDEBUG -fPIC -D_REENTRANT -I/usr/include/python2.6 -Iagg/include -Iinclude -I. -I/usr/include -I/usr/local/include -I/usr/include/freetype2 -I/usr/include/libxml2 -I/usr/include/postgresql -I/usr/include/pycairo -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/directfb -I/usr/include/libpng12 bindings/python/mapnik_image_view.cpp
g++ -o bindings/python/mapnik_line_pattern_symbolizer.os -c -DHAVE_LIBXML2 -DHAVE_PYCAIRO -ansi -Wall -pthread -ftemplate-depth-100 -DLINUX -DBOOST_SPIRIT_THREADSAFE -DMAPNIK_THREADSAFE -DSVN_REVISION=1339 -O2 -finline-functions -Wno-inline -DNDEBUG -fPIC -D_REENTRANT -I/usr/include/python2.6 -Iagg/include -Iinclude -I. -I/usr/include -I/usr/local/include -I/usr/include/freetype2 -I/usr/include/libxml2 -I/usr/include/postgresql -I/usr/include/pycairo -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/directfb -I/usr/include/libpng12 bindings/python/mapnik_line_pattern_symbolizer.cpp
In file included from /usr/include/boost/python/object/function_handle.hpp:10,
from /usr/include/boost/python/converter/arg_to_python.hpp:19,
from /usr/include/boost/python/call.hpp:15,
from /usr/include/boost/python/object_core.hpp:12,
from /usr/include/boost/python/args.hpp:25,
from /usr/include/boost/python.hpp:11,
from bindings/python/mapnik_line_pattern_symbolizer.cpp:24:
include/mapnik/symbolizer.hpp: In member function ‘PyObject* boost::python::objects::caller_py_function_impl::operator()(PyObject*, PyObject*) [with Caller = boost::python::detail::caller >]’:
include/mapnik/symbolizer.hpp:40: warning: dereferencing pointer ‘p.416’ does break strict-aliasing rules
include/mapnik/line_pattern_symbolizer.hpp:35: warning: dereferencing pointer ‘p.416’ does break strict-aliasing rules
/usr/include/boost/python/detail/destroy.hpp:90: note: initialized from here
g++ -o bindings/python/mapnik_polygon_pattern_symbolizer.os -c -DHAVE_LIBXML2 -DHAVE_PYCAIRO -ansi -Wall -pthread -ftemplate-depth-100 -DLINUX -DBOOST_SPIRIT_THREADSAFE -DMAPNIK_THREADSAFE -DSVN_REVISION=1339 -O2 -finline-functions -Wno-inline -DNDEBUG -fPIC -D_REENTRANT -I/usr/include/python2.6 -Iagg/include -Iinclude -I. -I/usr/include -I/usr/local/include -I/usr/include/freetype2 -I/usr/include/libxml2 -I/usr/include/postgresql -I/usr/include/pycairo -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/directfb -I/usr/include/libpng12 bindings/python/mapnik_polygon_pattern_symbolizer.cpp
In file included from /usr/include/boost/python/object/function_handle.hpp:10,
from /usr/include/boost/python/converter/arg_to_python.hpp:19,
from /usr/include/boost/python/call.hpp:15,
from /usr/include/boost/python/object_core.hpp:12,
from /usr/include/boost/python/args.hpp:25,
from /usr/include/boost/python.hpp:11,
from bindings/python/mapnik_polygon_pattern_symbolizer.cpp:24:
include/mapnik/symbolizer.hpp: In member function ‘PyObject* boost::python::objects::caller_py_function_impl::operator()(PyObject*, PyObject*) [with Caller = boost::python::detail::caller >]’:
include/mapnik/symbolizer.hpp:40: warning: dereferencing pointer ‘p.416’ does break strict-aliasing rules
include/mapnik/polygon_pattern_symbolizer.hpp:35: warning: dereferencing pointer ‘p.416’ does break strict-aliasing rules
/usr/include/boost/python/detail/destroy.hpp:90: note: initialized from here
g++ -o bindings/python/mapnik_point_symbolizer.os -c -DHAVE_LIBXML2 -DHAVE_PYCAIRO -ansi -Wall -pthread -ftemplate-depth-100 -DLINUX -DBOOST_SPIRIT_THREADSAFE -DMAPNIK_THREADSAFE -DSVN_REVISION=1339 -O2 -finline-functions -Wno-inline -DNDEBUG -fPIC -D_REENTRANT -I/usr/include/python2.6 -Iagg/include -Iinclude -I. -I/usr/include -I/usr/local/include -I/usr/include/freetype2 -I/usr/include/libxml2 -I/usr/include/postgresql -I/usr/include/pycairo -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/directfb -I/usr/include/libpng12 bindings/python/mapnik_point_symbolizer.cpp
In file included from /usr/include/boost/python/object/function_handle.hpp:10,
from /usr/include/boost/python/converter/arg_to_python.hpp:19,
from /usr/include/boost/python/call.hpp:15,
from /usr/include/boost/python/object_core.hpp:12,
from /usr/include/boost/python/args.hpp:25,
from /usr/include/boost/python.hpp:11,
from bindings/python/mapnik_point_symbolizer.cpp:24:
include/mapnik/symbolizer.hpp: In member function ‘PyObject* boost::python::objects::caller_py_function_impl::operator()(PyObject*, PyObject*) [with Caller = boost::python::detail::caller >]’:
include/mapnik/symbolizer.hpp:40: warning: dereferencing pointer ‘p.547’ does break strict-aliasing rules
include/mapnik/point_symbolizer.hpp:35: warning: dereferencing pointer ‘p.547’ does break strict-aliasing rules
/usr/include/boost/python/detail/destroy.hpp:90: note: initialized from here
g++ -o bindings/python/mapnik_shield_symbolizer.os -c -DHAVE_LIBXML2 -DHAVE_PYCAIRO -ansi -Wall -pthread -ftemplate-depth-100 -DLINUX -DBOOST_SPIRIT_THREADSAFE -DMAPNIK_THREADSAFE -DSVN_REVISION=1339 -O2 -finline-functions -Wno-inline -DNDEBUG -fPIC -D_REENTRANT -I/usr/include/python2.6 -Iagg/include -Iinclude -I. -I/usr/include -I/usr/local/include -I/usr/include/freetype2 -I/usr/include/libxml2 -I/usr/include/postgresql -I/usr/include/pycairo -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/directfb -I/usr/include/libpng12 bindings/python/mapnik_shield_symbolizer.cpp
In file included from /usr/include/boost/python/object/function_handle.hpp:10,
from /usr/include/boost/python/converter/arg_to_python.hpp:19,
from /usr/include/boost/python/call.hpp:15,
from /usr/include/boost/python/object_core.hpp:12,
from /usr/include/boost/python/args.hpp:25,
from /usr/include/boost/python.hpp:11,
from bindings/python/mapnik_shield_symbolizer.cpp:25:
include/mapnik/symbolizer.hpp: In member function ‘PyObject* boost::python::objects::caller_py_function_impl::operator()(PyObject*, PyObject*) [with Caller = boost::python::detail::caller >]’:
include/mapnik/symbolizer.hpp:40: warning: dereferencing pointer ‘p.476’ does break strict-aliasing rules
include/mapnik/shield_symbolizer.hpp:38: warning: dereferencing pointer ‘p.476’ does break strict-aliasing rules
/usr/include/boost/python/detail/destroy.hpp:90: note: initialized from here
}}}