From 1155c4b413b5c539f3b4d6919a92f20e598b8d18 Mon Sep 17 00:00:00 2001
From: Kurtis Rader <krader@skepticism.us>
Date: Sun, 6 Nov 2016 17:48:26 -0800
Subject: [PATCH] silence false positive errors from some compilers

Fixes #3529
---
 src/builtin.cpp   | 2 ++
 src/tokenizer.cpp | 2 ++
 2 files changed, 4 insertions(+)

diff --git a/src/builtin.cpp b/src/builtin.cpp
index b7d12352c..430d3e608 100644
--- a/src/builtin.cpp
+++ b/src/builtin.cpp
@@ -2859,6 +2859,8 @@ static const wcstring hist_cmd_to_string(hist_cmd_t hist_cmd) {
         case HIST_SAVE:
             return L"save";
     }
+
+    DIE("should not reach this statement");  // silence some compiler errors about not returning
 }
 
 /// Remember the history subcommand and disallow selecting more than one history subcommand.
diff --git a/src/tokenizer.cpp b/src/tokenizer.cpp
index a8b2886b1..29d11639c 100644
--- a/src/tokenizer.cpp
+++ b/src/tokenizer.cpp
@@ -765,6 +765,8 @@ bool move_word_state_machine_t::consume_char(wchar_t c) {
             return consume_char_whitespace(c);
         }
     }
+
+    DIE("should not reach this statement");  // silence some compiler errors about not returning
 }
 
 move_word_state_machine_t::move_word_state_machine_t(move_word_style_t syl)