From 372af4308999ea004b56493a9a7b0a0018f74629 Mon Sep 17 00:00:00 2001 From: Szymon Janc Date: Tue, 2 Dec 2014 18:28:30 +0100 Subject: attrib: List all enum values in switch As described in coding style M10 --- attrib/gatt-service.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'attrib') diff --git a/attrib/gatt-service.c b/attrib/gatt-service.c index 874552bc5..f592a70a2 100644 --- a/attrib/gatt-service.c +++ b/attrib/gatt-service.c @@ -118,6 +118,10 @@ static GSList *parse_opts(gatt_option opt1, va_list args) case GATT_OPT_CHR_AUTHORIZATION: info->authorization = va_arg(args, gatt_option); break; + case GATT_CHR_VALUE_READ: + case GATT_CHR_VALUE_WRITE: + case GATT_CHR_VALUE_BOTH: + case GATT_OPT_INVALID: default: error("Invalid option: %d", opt); } -- cgit v1.2.1