pkg/heatshrink: fix fallthrough warnings
This commit is contained in:
parent
da4f2f6e6e
commit
ccea7a0df2
@ -0,0 +1,24 @@
|
||||
From d48f439824ecc17b3fd9cc1d9b8cbea7b00a5b0c Mon Sep 17 00:00:00 2001
|
||||
From: tobhe <t.heider@campus.lmu.de>
|
||||
Date: Wed, 19 Jul 2017 13:11:05 +0200
|
||||
Subject: [PATCH 1/2] Fixed fallthrough compiler warning
|
||||
|
||||
---
|
||||
heatshrink_encoder.c | 1 +
|
||||
1 file changed, 1 insertion(+)
|
||||
|
||||
diff --git a/heatshrink_encoder.c b/heatshrink_encoder.c
|
||||
index edf4abe..602e177 100644
|
||||
--- a/heatshrink_encoder.c
|
||||
+++ b/heatshrink_encoder.c
|
||||
@@ -235,6 +235,7 @@ HSE_poll_res heatshrink_encoder_poll(heatshrink_encoder *hse,
|
||||
break;
|
||||
case HSES_FLUSH_BITS:
|
||||
hse->state = st_flush_bit_buffer(hse, &oi);
|
||||
+ return HSER_POLL_EMPTY;
|
||||
case HSES_DONE:
|
||||
return HSER_POLL_EMPTY;
|
||||
default:
|
||||
--
|
||||
2.13.3
|
||||
|
||||
@ -0,0 +1,24 @@
|
||||
From 0cdd305bdae80c9ee9a170e5a3de2853b1fb0a42 Mon Sep 17 00:00:00 2001
|
||||
From: tobhe <t.heider@campus.lmu.de>
|
||||
Date: Wed, 19 Jul 2017 13:18:54 +0200
|
||||
Subject: [PATCH 2/2] Fixed fallthrough in getopt 'h'
|
||||
|
||||
---
|
||||
heatshrink.c | 1 +
|
||||
1 file changed, 1 insertion(+)
|
||||
|
||||
diff --git a/heatshrink.c b/heatshrink.c
|
||||
index 8c3ec5b..a4b675a 100755
|
||||
--- a/heatshrink.c
|
||||
+++ b/heatshrink.c
|
||||
@@ -409,6 +409,7 @@ static void proc_args(config *cfg, int argc, char **argv) {
|
||||
switch (a) {
|
||||
case 'h': /* help */
|
||||
usage();
|
||||
+ break;
|
||||
case 'e': /* encode */
|
||||
cfg->cmd = OP_ENC; break;
|
||||
case 'd': /* decode */
|
||||
--
|
||||
2.13.3
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user