Bug#421005: Causes FTBFS with GCC 4.3: error: extra ';'
Package: kdepim
Version: 4:3.5.6.dfsg.1-2
Usertags: ftbfs-gcc-4.3
Tags: patch
Your package fails to build with GCC 4.3. Version 4.3 has not been
released yet but I'm building with a snapshot in order to find errors
and give people an advance warning.
You can reproduce this problem with gcc-snapshot (20070422-1 or higher)
from unstable. (Currently not available for i386, but for amd64, powerpc
and ia64. I hope to have i386 binaries in the archive in the near
future.)
> Automatic build of syncekonnector_0.3.2-3 on coconut0 by sbuild/ia64 0.49
...
> /usr/include/kde/libkcal/incidencebase.h:198: error: extra ';'
> /usr/include/kde/libkcal/incidencebase.h:202: error: extra ';'
> /usr/include/kde/libkcal/incidencebase.h: In member function 'int KCal::IncidenceBase::attendeeCount() const':
> /usr/include/kde/libkcal/incidencebase.h:202: warning: conversion to 'int' from 'size_t' may alter its value
> In file included from ../libksynce/eventsyncee.h:28,
> from eventhandler.h:32,
> from eventhandler.cpp:25:
> /usr/include/kde/libkcal/calendar.h: At global scope:
> /usr/include/kde/libkcal/calendar.h:805: error: extra ';'
> In file included from eventhandler.h:33,
> from eventhandler.cpp:25:
> ../includes/libkdepim/progressmanager.h:134: error: extra ';'
> ../includes/libkdepim/progressmanager.h:260: error: extra ';'
I doubt the following patch is complete (*) but I thought I'd submit it
anyway since you have CVS access. Let's apply it and then we can
check later what's still broken. (*) I cannot compile kdepim with gcc
4.3 right now because the compiler segfaults; there's a patch for this
problem already.
--- libkdepim/progressmanager.h~ 2007-04-25 17:46:55.000000000 +0000
+++ libkdepim/progressmanager.h 2007-04-25 17:47:07.000000000 +0000
@@ -133,7 +133,7 @@
/**
* Recalculate progress according to total/completed items and update.
*/
- void updateProgress() { setProgress( mTotal? mCompleted*100/mTotal: 0 ); };
+ void updateProgress() { setProgress( mTotal? mCompleted*100/mTotal: 0 ); }
void addChild( ProgressItem *kiddo );
void removeChild( ProgressItem *kiddo );
@@ -259,7 +259,7 @@
* number as the id string for your progressItem to ensure it is unique.
* @return
*/
- static QString getUniqueID() { return QString::number( ++uID ); };
+ static QString getUniqueID() { return QString::number( ++uID ); }
/**
* Creates a ProgressItem with a unique id and the given label.
--- libkcal/incidencebase.h~ 2007-04-25 17:46:19.000000000 +0000
+++ libkcal/incidencebase.h 2007-04-25 17:46:49.000000000 +0000
@@ -195,11 +195,11 @@
/**
Return list of attendees.
*/
- const Attendee::List &attendees() const { return mAttendees; };
+ const Attendee::List &attendees() const { return mAttendees; }
/**
Return number of attendees.
*/
- int attendeeCount() const { return mAttendees.count(); };
+ int attendeeCount() const { return mAttendees.count(); }
/**
Return the Attendee with this email address.
*/
--- libkcal/calendar.h~ 2007-04-25 17:47:51.000000000 +0000
+++ libkcal/calendar.h 2007-04-25 17:48:07.000000000 +0000
@@ -802,7 +802,7 @@
is being observed.
*/
virtual void calendarModified( bool /*modified*/,
- Calendar * /*calendar*/ ) {};
+ Calendar * /*calendar*/ ) {}
/**
Notify the Observer that an Incidence has been inserted.
--- libkcal/scheduler.h~ 2007-04-25 17:48:08.000000000 +0000
+++ libkcal/scheduler.h 2007-04-25 17:48:22.000000000 +0000
@@ -55,7 +55,7 @@
and a status.
*/
ScheduleMessage( IncidenceBase *, int method, Status status );
- ~ScheduleMessage() {};
+ ~ScheduleMessage() {}
/**
Return event associated with this message.
--- libkcal/calendarnull.h~ 2007-04-25 17:48:23.000000000 +0000
+++ libkcal/calendarnull.h 2007-04-25 17:48:29.000000000 +0000
@@ -295,7 +295,7 @@
*/
void incidenceUpdated( IncidenceBase * /*incidenceBase*/ ) {}
- void setTimeZoneIdViewOnly( const QString& ) {};
+ void setTimeZoneIdViewOnly( const QString& ) {}
private:
static CalendarNull *mSelf;
--
Martin Michlmayr
http://www.cyrius.com/
Reply to: