[evolution-patches] Patch to fix implicit function declarations in e-d-s (docs, configuration, libedataserverui, weather backend, libical)
- From: David Malcolm <dmalcolm redhat com>
- To: evolution-patches lists ximian com
- Subject: [evolution-patches] Patch to fix implicit function declarations in e-d-s (docs, configuration, libedataserverui, weather backend, libical)
- Date: Tue, 23 Aug 2005 23:10:00 -0400
I've built evolution-data-server-1.3.8 with
-Werror-implicit-function-declaration (i.e. GCC treats a missing
function declaration as an error), to help track down annoying 64-bit
int vs pointer issues.
I had to apply the following patch to the tarball get everything to
compile cleanly. Assuming this applies cleanly, does this look OK to
commit? (with ChangeLog entries, of course)
--- evolution-data-server-1.3.8/docs/reference/libedataserver/libedataserver.types.fix-implicit-function-declarations 2005-08-23 22:22:24.000000000 -0400
+++ evolution-data-server-1.3.8/docs/reference/libedataserver/libedataserver.types 2005-08-23 22:23:54.000000000 -0400
@@ -1,4 +1,13 @@
#include <glib-object.h>
+#include <libedataserver/e-account.h>
+#include <libedataserver/e-component-listener.h>
+#include <libedataserver/e-file-cache.h>
+#include <libedataserver/e-iterator.h>
+#include <libedataserver/e-list-iterator.h>
+#include <libedataserver/e-list.h>
+#include <libedataserver/e-source-group.h>
+#include <libedataserver/e-source-list.h>
+#include <libedataserver/e-source.h>
e_account_get_type
e_component_listener_get_type
e_file_cache_get_type
@@ -7,4 +16,4 @@
e_list_get_type
e_source_group_get_type
e_source_list_get_type
-e_source_get_type
\ No newline at end of file
+e_source_get_type
--- evolution-data-server-1.3.8/docs/reference/addressbook/libebook/libebook.types.fix-implicit-function-declarations 2005-08-23 22:08:54.000000000 -0400
+++ evolution-data-server-1.3.8/docs/reference/addressbook/libebook/libebook.types 2005-08-23 22:11:28.000000000 -0400
@@ -1,4 +1,10 @@
#include <glib-object.h>
+#include <libebook/e-book-listener.h>
+#include <libebook/e-book-view-listener.h>
+#include <libebook/e-book-view.h>
+#include <libebook/e-book.h>
+#include <libebook/e-contact.h>
+#include <libebook/e-vcard.h>
e_book_listener_get_type
e_book_view_listener_get_type
e_book_view_get_type
--- evolution-data-server-1.3.8/docs/reference/calendar/libedata-cal/libedata-cal.types.fix-implicit-function-declarations 2005-08-23 22:16:15.000000000 -0400
+++ evolution-data-server-1.3.8/docs/reference/calendar/libedata-cal/libedata-cal.types 2005-08-23 22:17:51.000000000 -0400
@@ -1,4 +1,12 @@
#include <glib-object.h>
+#include <libedata-cal/e-cal-backend-cache.h>
+#include <libedata-cal/e-cal-backend-factory.h>
+#include <libedata-cal/e-cal-backend-sexp.h>
+#include <libedata-cal/e-cal-backend-sync.h>
+#include <libedata-cal/e-cal-backend.h>
+#include <libedata-cal/e-data-cal-factory.h>
+#include <libedata-cal/e-data-cal-view.h>
+#include <libedata-cal/e-data-cal.h>
e_cal_backend_cache_get_type
e_cal_backend_factory_get_type
e_cal_backend_sexp_get_type
--- evolution-data-server-1.3.8/docs/reference/calendar/libecal/libecal.types.fix-implicit-function-declarations 2005-08-23 22:13:57.000000000 -0400
+++ evolution-data-server-1.3.8/docs/reference/calendar/libecal/libecal.types 2005-08-23 22:27:50.000000000 -0400
@@ -1,6 +1,11 @@
#include <glib-object.h>
+#include <libecal/e-cal.h>
+#include <libecal/e-cal-view.h>
+#include <libecal/e-cal-listener.h>
+#include <libecal/e-cal-view-listener.h>
+#include <libecal/e-cal-component.h>
e_cal_get_type
e_cal_view_get_type
e_cal_listener_get_type
e_cal_view_listener_get_type
-e_cal_component_get_type
\ No newline at end of file
+e_cal_component_get_type
--- evolution-data-server-1.3.8/iconv-detect.c.fix-implicit-function-declarations 2004-12-02 22:34:16.000000000 -0500
+++ evolution-data-server-1.3.8/iconv-detect.c 2005-08-23 21:17:50.000000000 -0400
@@ -21,6 +21,7 @@
*/
#include <stdio.h>
+#include <stdlib.h>
#include <iconv.h>
enum {
--- evolution-data-server-1.3.8/libedataserverui/test-contact-store.c.fix-implicit-function-declarations 2005-08-23 22:02:41.000000000 -0400
+++ evolution-data-server-1.3.8/libedataserverui/test-contact-store.c 2005-08-23 22:04:24.000000000 -0400
@@ -28,6 +28,7 @@
#include "e-contact-store.h"
#include <gtk/gtk.h>
#include <libgnomeui/gnome-ui-init.h>
+#include <bonobo/bonobo-main.h>
static void
entry_changed (GtkWidget *entry, EContactStore *contact_store)
@@ -66,7 +67,6 @@
GtkTreeModel *model_sort;
GtkWidget *scrolled_window;
GtkWidget *window;
- GtkWidget *select_names_entry;
GtkWidget *tree_view;
GtkWidget *box;
GtkWidget *entry;
--- evolution-data-server-1.3.8/calendar/backends/weather/e-weather-source.c.fix-implicit-function-declarations 2005-08-23 21:55:38.000000000 -0400
+++ evolution-data-server-1.3.8/calendar/backends/weather/e-weather-source.c 2005-08-23 21:55:55.000000000 -0400
@@ -18,6 +18,7 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
*/
+#include <string.h>
#include "e-weather-source.h"
#include "e-weather-source-ccf.h"
--- evolution-data-server-1.3.8/calendar/libical/src/libicalvcal/vcc.y.fix-implicit-function-declarations 2005-08-23 21:44:09.000000000 -0400
+++ evolution-data-server-1.3.8/calendar/libical/src/libicalvcal/vcc.y 2005-08-23 21:45:45.000000000 -0400
@@ -170,6 +170,7 @@
static void enterAttr(const char *s1, const char *s2);
static void enterValues(const char *value);
static void mime_error_(char *s);
+static int mime_lex(void);
%}
@@ -987,7 +988,7 @@
return lexStr();
} /* LexQuotedPrintable */
-int yylex() {
+int yylex(void) {
int lexmode = LEXMODE();
if (lexmode == L_VALUES) {
--- evolution-data-server-1.3.8/calendar/libical/src/libicalss/icalssyacc.y.fix-implicit-function-declarations 2003-10-21 14:28:18.000000000 -0400
+++ evolution-data-server-1.3.8/calendar/libical/src/libicalss/icalssyacc.y 2005-08-23 21:17:50.000000000 -0400
@@ -47,6 +47,8 @@
static void ssyacc_add_from(struct icalgauge_impl* impl, char* str1);
static void set_logic(struct icalgauge_impl* impl,icalgaugelogic l);
void sserror(char *s); /* Don't know why I need this.... */
+int sslex(void *YYPARSE_PARAM);
+
%}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]