From 9be1f6862d6161afbc2c7e61061785ad67a13b15 Mon Sep 17 00:00:00 2001
From: Martin Nilsson <nilsson@fastmail.com>
Date: Sat, 17 Oct 2015 02:52:01 +0200
Subject: [PATCH] Added PIKE_DEBUG around code that shouldn't happen.

---
 src/builtin_functions.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/builtin_functions.c b/src/builtin_functions.c
index 21eadca473..53ab05abf7 100644
--- a/src/builtin_functions.c
+++ b/src/builtin_functions.c
@@ -1238,10 +1238,12 @@ PMOD_EXPORT void f_has_prefix(INT32 args)
     CASE_SHIFT(1,0);
     CASE_SHIFT(2,0);
     CASE_SHIFT(2,1);
+#ifdef PIKE_DEBUG
   default:
     Pike_error("Unexpected string shift combination: a:%d, b:%d!\n",
 	  a->size_shift, b->size_shift);
     break;
+#endif
   }
 #undef CASE_SHIFT
 #undef TWO_SHIFTS
@@ -1312,10 +1314,12 @@ PMOD_EXPORT void f_has_suffix(INT32 args)
     CASE_SHIFT(1,0);
     CASE_SHIFT(2,0);
     CASE_SHIFT(2,1);
+#ifdef PIKE_DEBUG
   default:
     Pike_error("Unexpected string shift combination: a:%d, b:%d!\n",
 	  a->size_shift, b->size_shift);
     break;
+#endif
   }
 #undef CASE_SHIFT
 #undef TWO_SHIFTS
-- 
GitLab