From df10ffab9cb9042fbeff16707746d6e76b748a1b Mon Sep 17 00:00:00 2001 From: Kurtis Rader Date: Tue, 16 Aug 2016 21:56:18 -0700 Subject: [PATCH] tell static code analysis we know what we're doing --- src/builtin.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/builtin.cpp b/src/builtin.cpp index 5ac837ab0..b317614cb 100644 --- a/src/builtin.cpp +++ b/src/builtin.cpp @@ -3020,8 +3020,8 @@ static int builtin_history(parser_t &parser, io_streams_t &streams, wchar_t **ar history->save(); break; } - default: { - DIE("Unhandled history command"); + case HIST_NOOP: { + DIE("Unexpected HIST_NOOP seen"); break; } }