summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2021-06-07 09:06:37 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2021-06-07 09:06:37 +0900
commit32e96a1d4a0741ee050fd45031260a1dc0fbe9f3 (patch)
tree0f7f7556e6c4b0c8f9e265fc98fa632965d64961
parent0afa651363c0b22f238c7442e84926e4e3f10574 (diff)
downloadmruby-32e96a1d4a0741ee050fd45031260a1dc0fbe9f3.tar.gz
mruby-32e96a1d4a0741ee050fd45031260a1dc0fbe9f3.zip
pack.c: add `default` to `switch` statement to silence warnings.
-rw-r--r--mrbgems/mruby-pack/src/pack.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/mrbgems/mruby-pack/src/pack.c b/mrbgems/mruby-pack/src/pack.c
index c8e0746d5..d2dcfe743 100644
--- a/mrbgems/mruby-pack/src/pack.c
+++ b/mrbgems/mruby-pack/src/pack.c
@@ -1430,6 +1430,8 @@ pack_unpack(mrb_state *mrb, mrb_value str, int single)
case PACK_DIR_QENC:
srcidx += unpack_M(mrb, sptr, srclen - srcidx, result, flags);
break;
+ default:
+ break;
}
continue;
}