Commit cea23f73 authored by Jussi Kukkonen's avatar Jussi Kukkonen

Compiler warning-fixes in geoclue/, mostly missing #includes

position.c: In function 'geoclue_position_set_position_callback':
position.c:58: warning: control reaches end of non-void function
position.c: In function 'geoclue_position_init':
position.c:177: warning: implicit declaration of function 'free'
find.c:43: warning: initialization makes integer from pointer without a cast
find.c: In function 'geoclue_find_init':
find.c:175: warning: implicit declaration of function 'free'
map.c: In function 'geoclue_map_init':
map.c:199: warning: implicit declaration of function 'free'
map_gtk_layout.c: In function 'geoclue_map_gtk_layout_new_corners':
map_gtk_layout.c:126: warning: implicit declaration of function 'geoclue_map_find_zoom_level'
map_gtk_layout.c: In function 'geoclue_map_gtk_layout_set_property':
map_gtk_layout.c:389: warning: implicit declaration of function 'geoclue_map_max_zoom'
map_gtk_layout.c: In function 'geoclue_map_gtk_layout_add_widget':
map_gtk_layout.c:498: warning: implicit declaration of function 'geoclue_map_latlong_to_offset'
map_gtk_layout.c: In function 'geoclue_map_gtk_layout_zoom_in':
map_gtk_layout.c:569: warning: implicit declaration of function 'geoclue_map_gtk_get_gdk_pixbuf'
map_gtk_layout.c: In function 'geoclue_map_gtk_layout_button_realease':
map_gtk_layout.c:630: warning: implicit declaration of function 'geoclue_map_offset_to_latlong'
geoclue_master.c: In function ‘geoclueserver_add_backend’:
geoclue_master.c:50: warning: implicit declaration of function ‘g_open’
geoclue_master.c:54: warning: implicit declaration of function ‘malloc’
geoclue_master.c:54: warning: incompatible implicit declaration of built-in function ‘malloc’
geoclue_master.c:87: warning: implicit declaration of function ‘free’
geoclue_master.c: In function ‘geoclue_master_get_all_position_providers’:
geoclue_master.c:219: warning: incompatible implicit declaration of built-in function ‘malloc’
geoclue_master.c: In function ‘geoclue_master_get_all_map_providers’:
geoclue_master.c:262: warning: incompatible implicit declaration of built-in function ‘malloc’
parent 28a800fc
......@@ -26,6 +26,7 @@
#include <find.h>
#include <find_client_glue.h>
#include <stdio.h>
#include <stdlib.h>
#include <find_signal_marshal.h>
#include <geoclue_master_client_glue.h>
......@@ -40,7 +41,7 @@ static DBusGConnection* geoclue_find_connection = NULL;
static DBusGProxy* geoclue_find_proxy = NULL;
static GEOCLUE_FIND_CALLBACK callbackfunction = NULL;
static void* userdatastore = NULL;
static int current_search_id = NULL;
static int current_search_id = 0;
//void geoclue_find_results_found(void* userdata, gdouble lat, gdouble lon)
......
......@@ -23,6 +23,8 @@
//#include <geoclue_map_client_glue.h>
#include <glib/gstdio.h>
#include <stdlib.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
......
......@@ -25,6 +25,7 @@
#include <map.h>
#include <map_client_glue.h>
#include <stdio.h>
#include <stdlib.h>
#include <map_signal_marshal.h>
#include <geoclue_master_client_glue.h>
......
......@@ -17,6 +17,8 @@
* Boston, MA 02111-1307, USA.
*/
#include "map.h"
#include "map_gtk.h"
#include "map_gtk_layout.h"
#include "gtk/gtkprivate.h"
#include "gtk/gtkimage.h"
......@@ -484,8 +486,6 @@ geoclue_map_gtk_layout_unrealize (GtkWidget *widget)
gboolean
geoclue_map_gtk_layout_add_widget(GeocluemapGtkLayout* geoclue_maplayout, GtkWidget* widget, gdouble IN_latitude, gdouble IN_longitude)
{
GeocluemapGtkLayoutChild* reference_image = (GeocluemapGtkLayoutChild*)g_list_nth_data(geoclue_maplayout->geoclue_map_image_children, 0);
if(reference_image != NULL)
......@@ -511,8 +511,8 @@ geoclue_map_gtk_layout_add_widget(GeocluemapGtkLayout* geoclue_maplayout, GtkWid
gtk_layout_put( GTK_LAYOUT(geoclue_maplayout),GTK_WIDGET(widget),new_widget->x,new_widget->y );
gtk_widget_show_all(GTK_WIDGET(geoclue_maplayout->eventbox));
}
return TRUE;
return TRUE;
}
......
......@@ -26,6 +26,7 @@
#include <position.h>
#include <position_client_glue.h>
#include <stdio.h>
#include <stdlib.h>
#include <position_signal_marshal.h>
#include <geoclue_master_client_glue.h>
......@@ -50,16 +51,15 @@ void geoclue_position_current_position_changed(void* userdata, gdouble lat, gdou
callbackfunction( lat, lon , userdatastore );
}
GEOCLUE_POSITION_RETURNCODE geoclue_position_set_position_callback(GEOCLUE_POSITION_CALLBACK callback, void* userdata )
{
callbackfunction = callback;
userdatastore = userdata;
return GEOCLUE_POSITION_SUCCESS;
}
GEOCLUE_POSITION_RETURNCODE geoclue_position_version(int* major, int* minor, int* micro)
{
if(geoclue_position_connection == NULL)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment