Hi,
gcc-5.2.1 from Debian stretch refuses to build osmo-pcu.
bts.cpp:86:1: error: invalid conversion from
'const rate_ctr_desc*' to
'unsigned int' [-fpermissive]
};
The relevant piece of code from bts.cpp is:
static const struct rate_ctr_group_desc bts_ctrg_desc = {
"bts",
"BTS Statistics",
ARRAY_SIZE(bts_ctr_description),
bts_ctr_description,
};
This structure comes from libosmocore, osmocom/core/rate_ctr.h, without
comments:
struct rate_ctr_group_desc {
const char *group_name_prefix;
const char *group_description;
int class_id;
const unsigned int num_ctr;
const struct rate_ctr_desc *ctr_desc;
};
It seems like the class_id is missing.
Since the initialization is done in the classic, ordered way, the last
three fields are initialized to unintened values, at least that's what I
make of this.
For me that looks like a real bug.
Kind regards,
-Alex