From 4e7ccaf9f133106786fd85a432ae23e11d9dcea2 Mon Sep 17 00:00:00 2001 From: Uwe Hermann Date: Thu, 17 May 2018 23:25:42 +0200 Subject: type_decoder.c: Fix a compiler warning (-Wswitch-default). MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit type_decoder.c: In function ‘get_term_type’: type_decoder.c:486:2: warning: switch missing default case [-Wswitch-default] switch (v[0]) { ^~~~~~ --- type_decoder.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/type_decoder.c b/type_decoder.c index 9e0a27c..e69b3c4 100644 --- a/type_decoder.c +++ b/type_decoder.c @@ -496,6 +496,8 @@ static int get_term_type(const char *v) return SRD_TERM_EITHER_EDGE; case 'n': return SRD_TERM_NO_EDGE; + default: + return -1; } return -1; -- cgit v1.2.3-70-g09d2