From 98c78087a1d214055b4bfb086343133de83a0faf Mon Sep 17 00:00:00 2001 From: Jean-Paul Pelteret Date: Fri, 13 Apr 2018 10:05:02 +0200 Subject: [PATCH] Add default cases to switches in muParser Fixes #6238 --- bundled/muparser_v2_2_4/src/muParserBase.cpp | 2 ++ bundled/muparser_v2_2_4/src/muParserBytecode.cpp | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/bundled/muparser_v2_2_4/src/muParserBase.cpp b/bundled/muparser_v2_2_4/src/muParserBase.cpp index cc0e218ee5..770606e7ac 100644 --- a/bundled/muparser_v2_2_4/src/muParserBase.cpp +++ b/bundled/muparser_v2_2_4/src/muParserBase.cpp @@ -859,6 +859,8 @@ namespace mu m_vRPN.AddFun(funTok.GetFuncAddr(), (funTok.GetArgCount()==-1) ? -iArgNumerical : iArgNumerical); break; + default: + break; } // Push dummy value representing the function result to the stack diff --git a/bundled/muparser_v2_2_4/src/muParserBytecode.cpp b/bundled/muparser_v2_2_4/src/muParserBytecode.cpp index fdb65cac9d..42c6ad0a75 100644 --- a/bundled/muparser_v2_2_4/src/muParserBytecode.cpp +++ b/bundled/muparser_v2_2_4/src/muParserBytecode.cpp @@ -306,7 +306,8 @@ namespace mu bOptimized = true; } break; - + default: + break; } // switch a_Oprt } } -- 2.39.5