artemp/tickets2issues — Issue #491: Remove excess ';' in #define
Author: artemp
Created: 2011-10-11 15:21:06+00:00
State: open
Labels: Core_Library

Hi!

The attached patch fixes:

{{{
g++ -g -D_GNU_SOURCE -c -Werror -W -D_REENTRANT -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/directfb -I/usr/include/libpng12 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libxml2 -I/usr/include/gdal -I/data/chroot-for-mapnik/usr/local/include -std=gnu++0x -Wall -Wextra -Werror -W -pedantic -Wcast-align -Wmissing-declarations -Wpointer-arith -Wreturn-type -c -o mapnik.o mapnik.cpp
In file included from /data/chroot-for-mapnik/usr/local/include/mapnik/line_symbolizer.hpp:27,
from /data/chroot-for-mapnik/usr/local/include/mapnik/rule.hpp:26,
from /data/chroot-for-mapnik/usr/local/include/mapnik/feature_type_style.hpp:28,
from /data/chroot-for-mapnik/usr/local/include/mapnik/map.hpp:33,
from /data/chroot-for-mapnik/usr/local/include/mapnik/feature_style_processor.hpp:32,
from /data/chroot-for-mapnik/usr/local/include/mapnik/agg_renderer.hpp:30,
from mapnik.cpp:4:
/data/chroot-for-mapnik/usr/local/include/mapnik/stroke.hpp:48: error: extra ‘;’
/data/chroot-for-mapnik/usr/local/include/mapnik/stroke.hpp:61: error: extra ‘;’
In file included from /data/chroot-for-mapnik/usr/local/include/mapnik/shield_symbolizer.hpp:29,
from /data/chroot-for-mapnik/usr/local/include/mapnik/rule.hpp:32,
from /data/chroot-for-mapnik/usr/local/include/mapnik/feature_type_style.hpp:28,
from /data/chroot-for-mapnik/usr/local/include/mapnik/map.hpp:33,
from /data/chroot-for-mapnik/usr/local/include/mapnik/feature_style_processor.hpp:32,
from /data/chroot-for-mapnik/usr/local/include/mapnik/agg_renderer.hpp:30,
from mapnik.cpp:4:
/data/chroot-for-mapnik/usr/local/include/mapnik/text_symbolizer.hpp:46: error: extra ‘;’
/data/chroot-for-mapnik/usr/local/include/mapnik/text_symbolizer.hpp:56: error: extra ‘;’
/data/chroot-for-mapnik/usr/local/include/mapnik/text_symbolizer.hpp:66: error: extra ‘;’
In file included from /data/chroot-for-mapnik/usr/local/include/mapnik/feature_style_processor.hpp:32,
from /data/chroot-for-mapnik/usr/local/include/mapnik/agg_renderer.hpp:30,
from mapnik.cpp:4:
/data/chroot-for-mapnik/usr/local/include/mapnik/map.hpp:357: error: extra ‘;’
make: *** [mapnik.o] Error 1
}}}

(mapnik.{cpp,o} is the interface of my program to the mapnik library. I usually use quite strict compiler switches...)