From: Richard Heck Date: Sun, 12 Jun 2016 04:34:35 +0000 (-0400) Subject: Add comments to fix coverity #23505 and 23507. X-Git-Tag: 2.3.0alpha1~1480 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=e622f82521e818ca961f82599ff2b1c084676b8e;p=features.git Add comments to fix coverity #23505 and 23507. --- diff --git a/src/insets/InsetListingsParams.cpp b/src/insets/InsetListingsParams.cpp index d365d89987..f37566138f 100644 --- a/src/insets/InsetListingsParams.cpp +++ b/src/insets/InsetListingsParams.cpp @@ -223,6 +223,8 @@ 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: @@ -685,6 +687,8 @@ docstring ParValidator::validate(string const & name, return bformat(_("Parameters starting with '%1$s': %2$s"), from_utf8(name), from_utf8(matching_names)); } + // this stifles a warning but upsets coverity + // coverity[UNREACHABLE] return docstring(); }