[phonemgr] Fix compiler warnings
- From: Daniele Forsi <dforsi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [phonemgr] Fix compiler warnings
- Date: Mon, 20 Dec 2010 10:50:36 +0000 (UTC)
commit a56aef396344fcc7d3d14160851146a15df7405c
Author: Daniele Forsi <dforsi src gnome org>
Date: Wed Dec 15 21:27:53 2010 +0100
Fix compiler warnings
Fixes:
phonemgr-utils.c: In function â??find_service_channelâ??:
phonemgr-utils.c:187: warning: unused variable â??obex_uuidâ??
phonemgr-utils.c:187: warning: unused variable â??browse_uuidâ??
phonemgr-utils.c: In function â??phonemgr_utils_guess_driverâ??:
phonemgr-utils.c:480: warning: unused variable â??perrâ??
phonemgr-utils.c:468: warning: unused variable â??errâ??
glibgsmtest.c: In function â??send_messageâ??:
glibgsmtest.c:98: warning: no return statement in function returning non-void
glibgsmtest.c: In function â??mainâ??:
glibgsmtest.c:124: warning: unused variable â??optionsâ??
ui.c:126: warning: no previous prototype for â??bluetooth_chooser_button_createâ??
libgsm/glibgsmtest.c | 3 ++-
libgsm/phonemgr-utils.c | 5 +----
src/app.h | 1 +
3 files changed, 4 insertions(+), 5 deletions(-)
---
diff --git a/libgsm/glibgsmtest.c b/libgsm/glibgsmtest.c
index 8dfb26b..8edb182 100644
--- a/libgsm/glibgsmtest.c
+++ b/libgsm/glibgsmtest.c
@@ -95,6 +95,8 @@ send_message (PhonemgrListener *l)
{
phonemgr_listener_queue_message (l, "+447736665138",
"test message XXX", TRUE);
+
+ return FALSE;
}
static gboolean debug = FALSE;
@@ -121,7 +123,6 @@ static const GOptionEntry entries[] = {
int
main (int argc, char **argv)
{
- GOptionGroup *options;
GOptionContext *context;
GError *err = NULL;
PhonemgrListener *listener;
diff --git a/libgsm/phonemgr-utils.c b/libgsm/phonemgr-utils.c
index d2ffb34..7b79700 100644
--- a/libgsm/phonemgr-utils.c
+++ b/libgsm/phonemgr-utils.c
@@ -184,7 +184,7 @@ find_service_channel (bdaddr_t *adapter, bdaddr_t *device, gboolean only_gnapple
{
sdp_session_t *sdp = NULL;
sdp_list_t *search = NULL, *attrs = NULL, *recs = NULL, *tmp;
- uuid_t browse_uuid, service_id, obex_uuid;
+ uuid_t service_id;
uint32_t range = 0x0000ffff;
int channel = -1;
@@ -465,7 +465,6 @@ phonemgr_utils_guess_driver (PhonemgrState *phone_state, const char *device,
{
const char *model;
char *driver;
- gn_error err;
driver = phonemgr_utils_driver_for_device (device);
if (driver != NULL)
@@ -475,9 +474,7 @@ phonemgr_utils_guess_driver (PhonemgrState *phone_state, const char *device,
return NULL;
model = gn_lib_get_phone_model (&phone_state->state);
-
if (model == NULL) {
- PhoneMgrError perr;
g_warning ("gn_lib_get_phone_model failed");
goto bail;
}
diff --git a/src/app.h b/src/app.h
index 734c6ec..afa9362 100644
--- a/src/app.h
+++ b/src/app.h
@@ -85,6 +85,7 @@ void create_send_dialog (MyApp *app, GtkDialog *parent, const char *recip);
void enable_flasher (MyApp *app);
void play_alert (MyApp *app);
void ui_hide (MyApp *app);
+GtkWidget *bluetooth_chooser_button_create (void);
/* connection functions */
void free_connection (MyApp *app);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]