Bug#305521: dia_0.94.0-7: FTBFS with gcc-4.0

Hervé Cauwelier HervĂ© Cauwelier <hcauwelier@oursours.net>, 305521@bugs.debian.org
Sat, 23 Apr 2005 22:26:14 +0200


This is a multi-part message in MIME format.
--------------070805070809070207040001
Content-Type: text/plain; charset=ISO-8859-15; format=flowed
Content-Transfer-Encoding: 8bit

I am working on this issue for Ubuntu. Sorry I haven't reacted earlier.

You will find attached the dpatch fixing this. Others will follow when I 
have thoroughtly tested them.

Lamont: the output you show isn't even what is fatal to compiling dia. ;-)

-- 
Hervé Cauwelier
http://www.oursours.net/

--------------070805070809070207040001
Content-Type: text/plain;
 name="06_fix-static-parse-path.dpatch"
Content-Transfer-Encoding: 8bit
Content-Disposition: inline;
 filename="06_fix-static-parse-path.dpatch"

#! /bin/sh /usr/share/dpatch/dpatch-run
## 06_fix-static-parse-path.dpatch by Hervé Cauwelier <hcauwelier@oursours.net>
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: No description.

@DPATCH@
diff -urNad dia-0.94.0/objects/custom/shape_info.c /tmp/dpep.xEmRLM/dia-0.94.0/objects/custom/shape_info.c
--- dia-0.94.0/objects/custom/shape_info.c	2005-04-23 19:52:40.109090592 +0200
+++ /tmp/dpep.xEmRLM/dia-0.94.0/objects/custom/shape_info.c	2005-04-23 20:46:50.282989056 +0200
@@ -116,7 +116,7 @@
 /* routine to chomp off the start of the string */
 #define path_chomp(path) while (path[0]!='\0'&&strchr(" \t\n\r,", path[0])) path++
 
-static void
+void
 parse_path(ShapeInfo *info, const char *path_str, DiaSvgGraphicStyle *s)
 {
   enum {

--------------070805070809070207040001--