]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Add default cases to switches in muParser 6239/head
authorJean-Paul Pelteret <jppelteret@gmail.com>
Fri, 13 Apr 2018 08:05:02 +0000 (10:05 +0200)
committerJean-Paul Pelteret <jppelteret@gmail.com>
Fri, 13 Apr 2018 08:05:02 +0000 (10:05 +0200)
Fixes #6238

bundled/muparser_v2_2_4/src/muParserBase.cpp
bundled/muparser_v2_2_4/src/muParserBytecode.cpp

index cc0e218ee543236365a067d6c01d90cbcb114d25..770606e7acd07b0f1315851221a6dd3761ecc382 100644 (file)
@@ -859,6 +859,8 @@ namespace mu
 \r
           m_vRPN.AddFun(funTok.GetFuncAddr(), (funTok.GetArgCount()==-1) ? -iArgNumerical : iArgNumerical);\r
           break;\r
+    default:\r
+          break;\r
     }\r
 \r
     // Push dummy value representing the function result to the stack\r
index fdb65cac9d098fbd7ef01dd9cf0d6d25fd7991e4..42c6ad0a7547fd5b1e1292a7544dc0fc97591816 100644 (file)
@@ -306,7 +306,8 @@ namespace mu
                 bOptimized = true;\r
               }\r
               break;\r
-              \r
+        default:\r
+              break;\r
         } // switch a_Oprt\r
       }\r
     }\r

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.