From: Uwe Hermann Date: Thu, 17 May 2018 21:25:42 +0000 (+0200) Subject: type_decoder.c: Fix a compiler warning (-Wswitch-default). X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=4e7ccaf9f133106786fd85a432ae23e11d9dcea2;p=libsigrokdecode.git type_decoder.c: Fix a compiler warning (-Wswitch-default). type_decoder.c: In function ‘get_term_type’: type_decoder.c:486:2: warning: switch missing default case [-Wswitch-default] switch (v[0]) { ^~~~~~ --- 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;