Comment 2 for bug 15305

Revision history for this message
Debian Bug Importer (debzilla) wrote :

Message-Id: <email address hidden>
Date: Fri, 07 Jan 2005 21:53:42 +0100
From: Andreas Jochens <email address hidden>
To: Debian Bug Tracking System <email address hidden>
Subject: gnome-applets: FTBFS (amd64/gcc-4.0): static declaration of 'change_background' follows
 non-static declaration

Package: gnome-applets
Severity: normal
Tags: patch

When building 'gnome-applets' on amd64 with gcc-4.0,
I get the following error:

battstat_applet.c:1446: error: static declaration of 'change_background' follows non-static declaration
battstat.h:155: error: previous declaration of 'change_background' was here
make[4]: *** [battstat_applet.o] Error 1
make[4]: Leaving directory `/gnome-applets-2.8.2/battstat'

With the attached patch 'gnome-applets' can be compiled
on amd64 using gcc-4.0.

Regards
Andreas Jochens

diff -urN ../tmp-orig/gnome-applets-2.8.2/battstat/battstat.h ./battstat/battstat.h
--- ../tmp-orig/gnome-applets-2.8.2/battstat/battstat.h 2004-08-03 16:22:29.000000000 +0200
+++ ./battstat/battstat.h 2005-01-07 19:56:50.413684168 +0100
@@ -151,7 +151,5 @@
 void destroy_about (GtkWidget *, gpointer);
 void about_cb (BonoboUIComponent *, ProgressData *, const char *);
 void size_allocate(PanelApplet *, GtkAllocation *, gpointer);
-void change_background(PanelApplet *a, PanelAppletBackgroundType type,
- GdkColor *color, GdkPixmap *pixmap, ProgressData *battstat);
 gint create_layout(ProgressData *battstat);
 void load_preferences(ProgressData *battstat);