gsm_data: Address compiler warning of unhandled switch

gcc does not really know the _NR_OF_ELEMENTS_IN_ENUM approach, add
the _NUM_GSM_BTS_TYPE to the handled cases.

gsm_data.c: In function ‘gsm_set_bts_type’:
gsm_data.c:349:2: warning: enumeration value ‘_NUM_GSM_BTS_TYPE’ not handled in switch [-Wswitch]
This commit is contained in:
Holger Hans Peter Freyther 2012-09-11 11:53:08 +02:00
parent 79c34ffb4f
commit 86f240aded
1 changed files with 1 additions and 0 deletions

View File

@ -362,6 +362,7 @@ int gsm_set_bts_type(struct gsm_bts *bts, enum gsm_bts_type type)
case GSM_BTS_TYPE_BS11:
case GSM_BTS_TYPE_UNKNOWN:
case GSM_BTS_TYPE_NOKIA_SITE:
case _NUM_GSM_BTS_TYPE:
break;
}