From: Jean-Paul Pelteret Date: Fri, 13 Apr 2018 08:05:02 +0000 (+0200) Subject: Add default cases to switches in muParser X-Git-Tag: v9.0.0-rc1~183^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=98c78087a1d214055b4bfb086343133de83a0faf;p=dealii.git Add default cases to switches in muParser Fixes #6238 --- 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 } }