From d6e52fb9ed9cd584748b71bd872c076116826123 Mon Sep 17 00:00:00 2001
From: Orgad Shaneh <orgads@gmail.com>
Date: Thu, 28 Dec 2017 09:28:58 +0200
Subject: [PATCH 4/5] Fix unintended fall-throughs

---
 src/read.c                | 1 +
 src/w32/compat/posixfcn.c | 2 ++
 2 files changed, 3 insertions(+)

diff --git a/src/read.c b/src/read.c
index db1a42d..e55bb75 100644
--- a/src/read.c
+++ b/src/read.c
@@ -2765,6 +2765,7 @@ get_next_mword (char *buffer, char *delim, char **startp, unsigned int *length)
                 && (p - beg == 2 || p[-3] == '(')))
 #endif
           goto done_word;
+          break;
 
         case '$':
           c = *(p++);
diff --git a/src/w32/compat/posixfcn.c b/src/w32/compat/posixfcn.c
index fac4535..dc6359b 100644
--- a/src/w32/compat/posixfcn.c
+++ b/src/w32/compat/posixfcn.c
@@ -105,6 +105,8 @@ fcntl (intptr_t fd, int cmd, ...)
                                 return -1;
                             }
                         }
+                      default:
+                        return 0;
                     }
                 }
               case F_UNLCK:
-- 
2.15.1.windows.2

