aboutsummaryrefslogtreecommitdiffstats
path: root/src/common/sysinfo.c
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2018-04-17 15:27:42 +0200
committerHarald Welte <laforge@gnumonks.org>2018-04-17 19:37:09 +0000
commit71fa788bc8850ec40963d5baf84cefd86d122777 (patch)
tree2b3a2c8765a8f5bc824ade4458b481a95e3bcb54 /src/common/sysinfo.c
parent261b6fdc8f2a1b662b63c03f302ba7939ef4f611 (diff)
common/sysinfo.c: Fix no return on on-void function
src/common/sysinfo.c:147:1: warning: control reaches end of non-void function [-Wreturn-type] } The compiler warning is actually a false positive since we call OSMO_ABORT on that path, but let's add a return anyway so the compiler doesn't throw a warning. Change-Id: I9b4e06927489a8bc20ce173279a01415a8c4295a
Diffstat (limited to 'src/common/sysinfo.c')
-rw-r--r--src/common/sysinfo.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/common/sysinfo.c b/src/common/sysinfo.c
index f5f9c7ec..5c66e086 100644
--- a/src/common/sysinfo.c
+++ b/src/common/sysinfo.c
@@ -144,6 +144,7 @@ uint8_t *bts_sysinfo_get(struct gsm_bts *bts, const struct gsm_time *g_time)
/* this should never bve reached. We must transmit a BCCH
* message on the normal BCCH in all cases. */
OSMO_ASSERT(0);
+ return 0;
}
uint8_t num_agch(struct gsm_bts_trx *trx, const char * arg)