From fbc0b497567fecd2818f4a497843f62d1be6d70c Mon Sep 17 00:00:00 2001 From: erin_yueh Date: Thu, 10 Jan 2008 05:14:53 +0000 Subject: gsmd: eliminate gcc warnings (Erin Yueh) git-svn-id: http://svn.openmoko.org/trunk/src/target/gsm@3807 99fdad57-331a-0410-800a-d7fa5415bdb3 --- src/libgsmd/libgsmd.c | 3 +++ src/libgsmd/libgsmd_network.c | 2 +- src/libgsmd/libgsmd_sms.c | 3 +-- 3 files changed, 5 insertions(+), 3 deletions(-) (limited to 'src/libgsmd') diff --git a/src/libgsmd/libgsmd.c b/src/libgsmd/libgsmd.c index b9db59a..36e49a6 100644 --- a/src/libgsmd/libgsmd.c +++ b/src/libgsmd/libgsmd.c @@ -32,9 +32,11 @@ #include #include +#include #include "lgsm_internals.h" +#if 0 static int lgsm_get_packet(struct lgsm_handle *lh) { static char buf[GSMD_MSGSIZE_MAX]; @@ -56,6 +58,7 @@ static int lgsm_get_packet(struct lgsm_handle *lh) return 0; } +#endif static int lgsm_open_backend(struct lgsm_handle *lh, const char *device) { diff --git a/src/libgsmd/libgsmd_network.c b/src/libgsmd/libgsmd_network.c index 5551de3..eb45169 100644 --- a/src/libgsmd/libgsmd_network.c +++ b/src/libgsmd/libgsmd_network.c @@ -38,6 +38,7 @@ int lgsm_get_netreg_state(struct lgsm_handle *lh, enum lgsm_netreg_state *state) { *state = lh->netreg_state; + return 0; } int lgsm_oper_get(struct lgsm_handle *lh) @@ -139,7 +140,6 @@ int lgsm_voicemail_set(struct lgsm_handle *lh, const char *number) { struct gsmd_msg_hdr *gmh; struct gsmd_voicemail *vmail; - int rc; gmh = lgsm_gmh_fill(GSMD_MSG_NETWORK, GSMD_NETWORK_VMAIL_SET, sizeof(*vmail)); diff --git a/src/libgsmd/libgsmd_sms.c b/src/libgsmd/libgsmd_sms.c index 81293ee..b13dacb 100644 --- a/src/libgsmd/libgsmd_sms.c +++ b/src/libgsmd/libgsmd_sms.c @@ -135,7 +135,7 @@ int lgsm_sms_send(struct lgsm_handle *lh, /* FIXME: only support PDU mode */ struct gsmd_msg_hdr *gmh; struct gsmd_sms_submit *gss; - int i, rc; + int rc; gmh = lgsm_gmh_fill(GSMD_MSG_SMS, GSMD_SMS_SEND, sizeof(*gss)); @@ -258,7 +258,6 @@ int packing_7bit_character(const char *src, struct lgsm_sms *dest) { int i,j = 0; unsigned char ch1, ch2; - char tmp[2]; int shift = 0; dest->alpha = ALPHABET_DEFAULT; -- cgit v1.2.3