summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUwe Hermann <uwe@hermann-uwe.de>2018-05-17 23:25:42 +0200
committerUwe Hermann <uwe@hermann-uwe.de>2018-05-17 23:25:42 +0200
commit4e7ccaf9f133106786fd85a432ae23e11d9dcea2 (patch)
tree32c9a898c7b6ae053ad117c30a9c375f5e76341a
parentd652ef844d7af968c4b4fe76e477d3d1fed54138 (diff)
downloadlibsigrokdecode-4e7ccaf9f133106786fd85a432ae23e11d9dcea2.tar.gz
libsigrokdecode-4e7ccaf9f133106786fd85a432ae23e11d9dcea2.zip
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]) { ^~~~~~
-rw-r--r--type_decoder.c2
1 files changed, 2 insertions, 0 deletions
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;