From 0ba5c9f8ebe55ee7dc759d9e5a6b2ef67d9b68fb Mon Sep 17 00:00:00 2001 From: horwitz Date: Fri, 4 Jan 2008 08:34:31 +0000 Subject: [PATCH] Fix:Core:Fix some compiler warnings git-svn-id: https://navit.svn.sourceforge.net/svnroot/navit/trunk@698 ffa7fe5e-494d-0410-b361-a75ebd5db220 --- navit/src/binding/python/binding_python.c | 1 + navit/src/callback.h | 1 + navit/src/menu.h | 6 ++---- navit/src/vehicle.h | 6 +++--- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/navit/src/binding/python/binding_python.c b/navit/src/binding/python/binding_python.c index f1931e5..cb33f83 100644 --- a/navit/src/binding/python/binding_python.c +++ b/navit/src/binding/python/binding_python.c @@ -1,4 +1,5 @@ #include "config.h" +#include #include #include #include "coord.h" diff --git a/navit/src/callback.h b/navit/src/callback.h index 09a5b68..eced8c1 100644 --- a/navit/src/callback.h +++ b/navit/src/callback.h @@ -8,6 +8,7 @@ extern "C" { struct callback; struct callback_list; struct callback_list *callback_list_new(void); +struct callback * callback_new_attr(void (*func)(), enum attr_type type, int pcount, void **p); struct callback *callback_new(void (*func)(void), int pcount, void **p); void callback_set_arg(struct callback *cb, int arg, void *p); void callback_list_add(struct callback_list *l, struct callback *cb); diff --git a/navit/src/menu.h b/navit/src/menu.h index 8c2da96..fdac7a5 100644 --- a/navit/src/menu.h +++ b/navit/src/menu.h @@ -7,7 +7,9 @@ enum menu_type { menu_type_toggle, }; +struct container; struct menu; +struct callback; struct menu_methods { struct menu_priv *(*add)(struct menu_priv *menu, struct menu_methods *meth, char *name, enum menu_type type, struct callback *cb); @@ -21,10 +23,6 @@ struct menu { }; /* prototypes */ -enum menu_type; -struct callback; -struct container; -struct menu; void menu_route_do_update(struct container *co); void menu_route_update(struct container *co); struct menu *menu_add(struct menu *menu, char *name, enum menu_type type, struct callback *cb); diff --git a/navit/src/vehicle.h b/navit/src/vehicle.h index 791fb85..c67567d 100644 --- a/navit/src/vehicle.h +++ b/navit/src/vehicle.h @@ -4,7 +4,10 @@ #ifdef __cplusplus extern "C" { #endif +struct vehicle; struct vehicle_priv; +enum attr_type; +struct attr; struct vehicle_methods { void (*destroy)(struct vehicle_priv *priv); @@ -14,9 +17,6 @@ struct vehicle_methods { }; /* prototypes */ -enum attr_type; -struct attr; -struct vehicle; struct vehicle *vehicle_new(struct attr **attrs); int vehicle_position_attr_get(struct vehicle *this_, enum attr_type type, struct attr *attr); int vehicle_set_attr(struct vehicle *this_, struct attr *attr, struct attr **attrs); -- 2.7.4