From c2712384f6d61e08105a083ff1383a16fb2effed Mon Sep 17 00:00:00 2001 From: Vadim Yanitskiy Date: Tue, 9 Jun 2020 00:07:44 +0700 Subject: firmware: fix compilation with arm-none-eabi-gcc 10.1.0 These symbols are defined, but never used: - struct last_rach - seems to be copy-pasted from prim_rach.c, - tall_msgb_ctx - already defined in libosmocore. Change-Id: I6077c8e9b441f7848d1a4c25a8b5e1aed82f4b7d --- src/target/firmware/comm/msgb.c | 2 -- src/target/firmware/layer1/prim_freq.c | 5 ----- 2 files changed, 7 deletions(-) diff --git a/src/target/firmware/comm/msgb.c b/src/target/firmware/comm/msgb.c index 3524ba58..08f5acbd 100644 --- a/src/target/firmware/comm/msgb.c +++ b/src/target/firmware/comm/msgb.c @@ -32,8 +32,6 @@ #define NO_TALLOC -void *tall_msgb_ctx; - #ifdef NO_TALLOC /* This is a poor mans static allocator for msgb objects */ #define MSGB_DATA_SIZE 256+4 diff --git a/src/target/firmware/layer1/prim_freq.c b/src/target/firmware/layer1/prim_freq.c index ca6dc9e4..68e63e9b 100644 --- a/src/target/firmware/layer1/prim_freq.c +++ b/src/target/firmware/layer1/prim_freq.c @@ -49,11 +49,6 @@ #include -struct { - uint32_t fn; - uint16_t band_arfcn; -} last_rach; - /* if the "starting time" is reached, use frequencies "after time" */ static int l1s_freq_cmd(__unused uint8_t p1, __unused uint8_t p2, __unused uint16_t p3) { -- cgit v1.2.3