[patch-gcc-4.0.1] e-cal.c: static declaration follows non-static declaration



found error when build garnome-2.10.2 with gcc-4.0.1

file: evolution-data-server/main.d/evolution-data-server-1.2.3/calendar/libecal/e-cal.c

e-cal.c:893: warning: implicit declaration of function 'open_calendar'
e-cal.c: At top level:
e-cal.c:1495: error: static declaration of 'open_calendar' follows
non-static declaration
e-cal.c:893: error: previous implicit declaration of 'open_calendar' was here

found this patch fixed it:

--- e-cal.c     2005-04-08 02:08:23.000000000 +0800
+++ src/garnome-build/evolution-data-server/main.d/evolution-data-server-1.2.3/calendar/libecal/e-cal.c
2005-09-02 20:02:36.000000000 +0800
@@ -885,6 +885,9 @@
        g_mutex_unlock (op->mutex);
 }

+static gboolean
+open_calendar (ECal *ecal, gboolean only_if_exists, GError **error,
ECalendarStatus *status, gboolean needs_auth);
+
 static gboolean
 reopen_with_auth (gpointer data)
 {



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]