]> git.lyx.org Git - features.git/commitdiff
Another forgotten unreachable `return' that is not needed
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Tue, 14 Mar 2017 13:46:02 +0000 (14:46 +0100)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Tue, 14 Mar 2017 13:46:02 +0000 (14:46 +0100)
The compilers we use now do not care, but coverity complains.

src/insets/InsetListingsParams.cpp

index bc1b4cebf5bd3bab7901a098138afebae73dc67d..4b90ce7e91128495817fed52aa140ae2f5e1819c 100644 (file)
@@ -223,9 +223,6 @@ docstring ListingsParam::validate(string const & par) const
                        return bformat(_("Try one of %1$s."), from_utf8(info_));
                else
                        return bformat(_("I guess you mean %1$s."), from_utf8(matching_names));
-               // this stifles a warning but upsets coverity
-               // coverity[UNREACHABLE]
-               return docstring();
        }
        case SUBSETOF:
                if (par2.empty() && !onoff_) {