diff --git a/mex/sources/kalman_steady_state/kalman_steady_state.cc b/mex/sources/kalman_steady_state/kalman_steady_state.cc
index 706e52369d2ddddf40aa83c549cf20ad618c003f..02ecd1362086eab3aae69e81aa54aca42cc38826 100644
--- a/mex/sources/kalman_steady_state/kalman_steady_state.cc
+++ b/mex/sources/kalman_steady_state/kalman_steady_state.cc
@@ -58,11 +58,6 @@
 #include <dynmex.h>
 //#include "../matlab_versions_compatibility.h"
 
-#ifdef MWTYPES_NOT_DEFINED
-  typedef int mwIndex;
-  typedef int mwSize;
-#endif
-
 #if !defined(MATLAB_MEX_FILE) || !defined(_WIN32)
 # define sb02od sb02od_
 #endif
@@ -269,7 +264,7 @@ void mexFunction( int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[] )
             mexPrintf("a singular matrix was encountered during the computation of the solution matrix P");
             break;
           }      
-        otherwise:
+        default:
           {
             mexPrintf("Unknown problem!");
           }