i am not sure, if the variables bts and trx will be used in the future, so i left them as
comments.
-----Ursprüngliche Nachricht-----
Von: openbsc-bounces(a)lists.gnumonks.org [mailto:openbsc-bounces@lists.gnumonks.org] Im
Auftrag von Holger Freyther
Gesendet: Dienstag, 17. November 2009 10:20
An: openbsc(a)lists.gnumonks.org
Betreff: Re: patch: fix of compiler warnings
On Monday 16 November 2009 18:52:32 Andreas.Eversberg wrote:
diff --git a/openbsc/src/bsc_init.c
b/openbsc/src/bsc_init.c
index 815fe2b..3b451b1 100644
--- a/openbsc/src/bsc_init.c
+++ b/openbsc/src/bsc_init.c
@@ -433,8 +433,8 @@ int nm_state_event(enum nm_evt evt, u_int8_t
obj_class, void *obj,
static int sw_activ_rep(struct msgb *mb)
{
struct abis_om_fom_hdr *foh = msgb_l3(mb);
- struct gsm_bts *bts = mb->trx->bts;
- struct gsm_bts_trx *trx = gsm_bts_trx_num(bts,
foh->obj_inst.trx_nr);
+// struct gsm_bts *bts = mb->trx->bts;
+// struct gsm_bts_trx *trx = gsm_bts_trx_num(bts,
foh->obj_inst.trx_nr);
was this intentional? Is the warning that these are unused? In this case we
will just nuke the variable declaration.