diff options
author | Pau Espin Pedrol <pespin@sysmocom.de> | 2018-10-03 19:39:07 +0200 |
---|---|---|
committer | Pau Espin Pedrol <pespin@sysmocom.de> | 2018-10-03 19:39:10 +0200 |
commit | ba68fe40bf193d105c3216ca5981ef8388573052 (patch) | |
tree | 27a527d6af084055a6c7637cc8beba27c4d56505 /src/osmo-bsc/bts_ericsson_rbs2000.c | |
parent | a82fc599b79ef8f6d673902943a2f4031130f7cf (diff) |
osmo-bsc: Add default case for switch(enum)
After commit https://gerrit.osmocom.org/#/c/libosmo-abis/+/11207/
(Iaa33b793f89f2d16c9d949503c5ecc195bbcd2a4),
input_signal_data->link_type exposes proper enum type, and compiler can
warn about missing cases:
osmo-bsc/bts_ericsson_rbs2000.c: In function ‘inp_sig_cb’:
osmo-bsc/bts_ericsson_rbs2000.c:124:3: error: enumeration value ‘E1INP_SIGN_NONE’ not handled in switch [-Werror=switch]
switch (isd->link_type) {
^~~~~~
Change-Id: Ia407a5072896377b68e914e2a05b5e01292ee8ee
Diffstat (limited to 'src/osmo-bsc/bts_ericsson_rbs2000.c')
-rw-r--r-- | src/osmo-bsc/bts_ericsson_rbs2000.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/osmo-bsc/bts_ericsson_rbs2000.c b/src/osmo-bsc/bts_ericsson_rbs2000.c index ed3db939a..4d1e91b0f 100644 --- a/src/osmo-bsc/bts_ericsson_rbs2000.c +++ b/src/osmo-bsc/bts_ericsson_rbs2000.c @@ -130,6 +130,8 @@ static int inp_sig_cb(unsigned int subsys, unsigned int signal, else bootstrap_om_trx(isd->trx); break; + default: + break; } break; case S_L_INP_TEI_DN: |