diff --git a/wrap/matlab.h b/wrap/matlab.h index 30e759c83..c84d6fdec 100644 --- a/wrap/matlab.h +++ b/wrap/matlab.h @@ -225,6 +225,7 @@ mxArray* wrap(const gtsam::Matrix& A) { template T unwrap(const mxArray* array) { error("wrap internal error: attempted unwrap of invalid type"); + return T(); } // specialization to string