From 1a8dbc4fc93698b89b35254286317f1a1d8dfaa5 Mon Sep 17 00:00:00 2001 From: Jacob Erlbeck Date: Thu, 4 Sep 2014 11:17:47 +0200 Subject: gbproxy: Fix warnings This patch fixes the remaining 'unused' warnings. Sponsored-by: On-Waves ehf --- openbsc/src/gprs/gb_proxy.c | 1 - openbsc/src/gprs/gprs_gb_parse.c | 2 -- 2 files changed, 3 deletions(-) diff --git a/openbsc/src/gprs/gb_proxy.c b/openbsc/src/gprs/gb_proxy.c index 965059bdb..a61a3071b 100644 --- a/openbsc/src/gprs/gb_proxy.c +++ b/openbsc/src/gprs/gb_proxy.c @@ -116,7 +116,6 @@ static void gprs_push_llc_ui(struct msgb *msg, const uint8_t e_bit = 0; const uint8_t pm_bit = 1; const uint8_t cr_bit = is_uplink ? 0 : 1; - size_t msg_size = msgb_length(msg); uint8_t *llc; uint8_t *fcs_field; uint32_t fcs; diff --git a/openbsc/src/gprs/gprs_gb_parse.c b/openbsc/src/gprs/gprs_gb_parse.c index ef4a4d108..fe0881783 100644 --- a/openbsc/src/gprs/gprs_gb_parse.c +++ b/openbsc/src/gprs/gprs_gb_parse.c @@ -224,7 +224,6 @@ static int gprs_gb_parse_gmm_detach_req(uint8_t *data, size_t data_len, { uint8_t *value; size_t value_len; - int detach_type; int power_off; parse_ctx->llc_msg_name = "DETACH_REQ"; @@ -235,7 +234,6 @@ static int gprs_gb_parse_gmm_detach_req(uint8_t *data, size_t data_len, /* invalid */ return 0; - detach_type = *value & 0x07; power_off = *value & 0x08 ? 1 : 0; if (!parse_ctx->to_bss) { -- cgit v1.2.3