On Wednesday 15 March 2006 6:32 pm, Martin Michlmayr wrote:
> Package: pilot-qof
> Version: 0.0.7-1
> Severity: important
>
> Your package fails to build with G++ 4.1.

(It's not C++ code, shouldn't that be GCC 4.1?)

> I'm filing this bug as 
> important for now, but when 4.1 will be the default compiler in
> unstable (probably in a few weeks) I'll upgrade this to serious.

Until it's in i386 unstable I can't test it.
:-(

Until pilot-link 0.12 is released, I can't make the next release either.

> I only get this on mips, not on i386, fwiw.  If you have a patch I can
> test it on mips.

I've got a sample patch but there are many other places in the code where this 
syntax is used so if you can tell me if this patch allows this part to 
compile, I'll implement the change in the other areas and include it in the 
upcoming pilot-qof 0.1.0 release. If not, I'll have to wait until I can test 
with 4.1 myself. (I'm the upstream developer and Debian maintainer via my 
sponsor.)

I cannot test it here so I have no idea if this solves the problem.

Index: qof-datebook.c
===================================================================
RCS file: /var/lib/cvs/pilot-qof/src/qof-datebook.c,v
retrieving revision 1.20.2.2
diff -p -u -b -B -u -r1.20.2.2 qof-datebook.c
--- qof-datebook.c      28 Feb 2006 16:32:44 -0000      1.20.2.2
+++ qof-datebook.c      15 Mar 2006 20:41:31 -0000
@@ -420,11 +420,13 @@ static void
 datebook_setAdvanceUnit (qof_datebook * d, const gchar *e)
 {
        Appointment_t *qd;
+       enum alarmTypes type;
 
        g_return_if_fail (d != NULL);
        if(e == NULL) { return; }
        qd = &d->wrap;
-       alarmTypesfromString(e, (enum alarmTypes*)&qd->advanceUnits);
+       alarmTypesfromString(e, &type);
+       qd->advanceUnits = type;
 }
 
 /** \brief Uses ENUM_REPEAT_LIST to convert to an enum value.


-- 

Neil Williams
=============
http://www.data-freedom.org/
http://www.nosoftwarepatents.com/
http://www.linux.codehelp.co.uk/

Attachment: pgpkxtS7oqbCj.pgp
Description: PGP signature

Reply via email to