From ce0c11ba4e54fa7d619ea26c3fe05af50e474cd0 Mon Sep 17 00:00:00 2001 From: Jean-Marc Lasgouttes Date: Thu, 9 Mar 2017 15:05:33 +0100 Subject: [PATCH] Remove unreachable return statements They were needed long ago to avoid gcc warnings, but now all they do is create coverity warnings. --- src/mathed/InsetMathHull.cpp | 3 --- src/support/Package.cpp | 3 --- 2 files changed, 6 deletions(-) diff --git a/src/mathed/InsetMathHull.cpp b/src/mathed/InsetMathHull.cpp index e21beb236e..851c1e6167 100644 --- a/src/mathed/InsetMathHull.cpp +++ b/src/mathed/InsetMathHull.cpp @@ -2117,9 +2117,6 @@ bool InsetMathHull::getStatus(Cursor & cur, FuncRequest const & cmd, default: return InsetMathGrid::getStatus(cur, cmd, status); } - - // This cannot really happen, but inserted to shut-up gcc - return InsetMathGrid::getStatus(cur, cmd, status); } diff --git a/src/support/Package.cpp b/src/support/Package.cpp index 1fd47eca68..bdba77e7ac 100644 --- a/src/support/Package.cpp +++ b/src/support/Package.cpp @@ -651,9 +651,6 @@ get_system_support_dir(FileName const & abs_binary, "to the LyX system directory containing the " "file `chkconfig.ltx'."), from_utf8(searched_dirs_str), from_ascii(LYX_DIR_VER))); - - // Keep the compiler happy. - return FileName(); } -- 2.39.2