From ba68fe40bf193d105c3216ca5981ef8388573052 Mon Sep 17 00:00:00 2001 From: Pau Espin Pedrol Date: Wed, 3 Oct 2018 19:39:07 +0200 Subject: osmo-bsc: Add default case for switch(enum) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- src/osmo-bsc/bts_nokia_site.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/osmo-bsc/bts_nokia_site.c') diff --git a/src/osmo-bsc/bts_nokia_site.c b/src/osmo-bsc/bts_nokia_site.c index 052741ed1..66972c2b5 100644 --- a/src/osmo-bsc/bts_nokia_site.c +++ b/src/osmo-bsc/bts_nokia_site.c @@ -168,6 +168,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_UNKNOWN: -- cgit v1.2.3