artemp/tickets2issues — Issue #299: g++ (Ubuntu 4.3.2-1ubuntu11) compiler warnings
Author: artemp
Created: 2011-10-11 15:09:10+00:00
State: closed
Labels: Core_Library

Just rebuilt against r864 on ubuntu 8.10 and see two compiler warning coming from terrain I'm not familiar with:

Anyone up for fixing?

{{{
g++ -o bindings/python/python_cairo.os -c -DHAVE_LIBXML2 -DHAVE_CAIRO -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/postgresql -I/usr/include/freetype2 -I/usr/include/libxml2 -I/usr/include/cairomm-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/libpng12 -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+
}}}

{{{
g++ -o src/png_reader.os -c -DHAVE_LIBXML2 -DHAVE_CAIRO -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/postgresql -I/usr/include/freetype2 -I/usr/include/libxml2 -I/usr/include/cairomm-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/libpng12 -I/usr/include/pycairo src/png_reader.cpp
src/png_reader.cpp: In member function 'void mapnik::PngReader::init()':
src/png_reader.cpp:97: warning: ignoring return value of 'size_t fread(void*, size_t, size_t, FILE*)', declared with attribute warn_unused_result

}}}