Commit ea83b7f6e64a0429914dcb5e7986d65ed6ff4714

Martin Mitas 2017-01-04T21:57:49

md_analyze_simple_pairing_mark: Fix gcc warning.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
diff --git a/md4c/md4c.c b/md4c/md4c.c
index 0b9219b..f3f0c04 100644
--- a/md4c/md4c.c
+++ b/md4c/md4c.c
@@ -3168,9 +3168,10 @@ md_analyze_simple_pairing_mark(MD_CTX* ctx, MD_MARKCHAIN* chain, int mark_index,
             SZ opener_orig_size_modulo3;
 
             switch(opener->flags & MD_MARK_EMPH_MODULO3_MASK) {
-                case MD_MARK_EMPH_MODULO3_0:   opener_orig_size_modulo3 = 0; break;
-                case MD_MARK_EMPH_MODULO3_1:   opener_orig_size_modulo3 = 1; break;
-                case MD_MARK_EMPH_MODULO3_2:   opener_orig_size_modulo3 = 2; break;
+                case MD_MARK_EMPH_MODULO3_0:    opener_orig_size_modulo3 = 0; break;
+                case MD_MARK_EMPH_MODULO3_1:    opener_orig_size_modulo3 = 1; break;
+                case MD_MARK_EMPH_MODULO3_2:    opener_orig_size_modulo3 = 2; break;
+                default:                        MD_UNREACHABLE(); break;
             }
 
             while((opener_orig_size_modulo3 + closer_size) % 3 == 0) {