[cairo-commit] libsvg ChangeLog,1.61,1.62 configure.in,1.9,1.10

Carl Worth commit at pdx.freedesktop.org
Mon Apr 11 09:20:11 PDT 2005


Committed by: cworth

Update of /cvs/cairo/libsvg
In directory gabe:/tmp/cvs-serv14294

Modified Files:
	ChangeLog configure.in 
Log Message:

        * src/Makefile.am:
        * configure.in: Enable a bunch of useful warnings when using gcc.

        * src/svg_ascii.h:
        * src/svg_ascii.c: (_svg_ascii_strtod): Fix indentation.

        Fixes for more strict signedness checks as of gcc version 4:

        * src/svg_element.c: (_svg_element_init_copy),
        (_svg_element_apply_attributes): Cast to unsigned char* just
        before calling into libxml routines.

        * src/svg.h: Change render_text callback to accept char* instead
        of unsigned char *.

        * src/svg_parser_libxml.c: Move prototypes for
        _svg_parser_sax_start_element, _svg_parser_sax_end_element, and
        _svg_parser_sax_characters into svgint.h where they belong.
        Use xmlStrdup instead of xmlMemStrdup for correct signedness.

        * src/svg_attribute.c:
        * src/svg.c:
        * src/svg_gradient.c:
        * src/svg_group.c:
        * src/svg_image.c:
        * src/svg_paint.c:
        * src/svg_parser.c:
        * src/svg_path.c:
        * src/svg_pattern.c:
        * src/svg_style.c:
        * src/svg_text.c:
        * src/svg_transform.c:
        * src/svgint.h: Prefer char* over xmlChar* for internal use.

Index: ChangeLog
===================================================================
RCS file: /cvs/cairo/libsvg/ChangeLog,v
retrieving revision 1.61
retrieving revision 1.62
diff -u -d -r1.61 -r1.62
--- ChangeLog	28 Feb 2005 23:31:59 -0000	1.61
+++ ChangeLog	11 Apr 2005 16:20:09 -0000	1.62
@@ -1,3 +1,39 @@
+2005-04-11  Carl Worth  <cworth at cworth.org>
+
+	* src/Makefile.am:
+	* configure.in: Enable a bunch of useful warnings when using gcc.
+
+	* src/svg_ascii.h:
+	* src/svg_ascii.c: (_svg_ascii_strtod): Fix indentation.
+
+	Fixes for more strict signedness checks as of gcc version 4:
+
+	* src/svg_element.c: (_svg_element_init_copy),
+	(_svg_element_apply_attributes): Cast to unsigned char* just
+	before calling into libxml routines.
+
+	* src/svg.h: Change render_text callback to accept char* instead
+	of unsigned char *.
+
+	* src/svg_parser_libxml.c: Move prototypes for
+	_svg_parser_sax_start_element, _svg_parser_sax_end_element, and
+	_svg_parser_sax_characters into svgint.h where they belong.
+	Use xmlStrdup instead of xmlMemStrdup for correct signedness.
+
+	* src/svg_attribute.c:
+	* src/svg.c:
+	* src/svg_gradient.c:
+	* src/svg_group.c:
+	* src/svg_image.c:
+	* src/svg_paint.c:
+	* src/svg_parser.c:
+	* src/svg_path.c:
+	* src/svg_pattern.c:
+	* src/svg_style.c:
+	* src/svg_text.c:
+	* src/svg_transform.c:
+	* src/svgint.h: Prefer char* over xmlChar* for internal use.
+
 2005-02-28  Carl Worth  <cworth at cworth.org>
 
 	* src/svg.c (svg_render): Use getcwd in accordance with POSIX

Index: configure.in
===================================================================
RCS file: /cvs/cairo/libsvg/configure.in,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -d -r1.9 -r1.10
--- configure.in	14 Feb 2005 17:26:26 -0000	1.9
+++ configure.in	11 Apr 2005 16:20:09 -0000	1.10
@@ -61,6 +61,17 @@
 AM_CONDITIONAL(EXPAT, test $LIBSVG_PARSER_BACKEND = "expat")
 
 dnl ===========================================================================
+dnl Use lots of warning flags with GCC
+
+WARN_CFLAGS=""
+if test "x$GCC" = "xyes"; then
+	WARN_CFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes \
+	-Wmissing-prototypes -Wmissing-declarations \
+	-Wnested-externs -fno-strict-aliasing"
+fi
+AC_SUBST(WARN_CFLAGS)
+
+dnl ===========================================================================
 
 AC_OUTPUT([
 libsvg.spec




More information about the cairo-commit mailing list