Add comments to fix coverity #23505 and 23507.

This commit is contained in:
Richard Heck 2016-06-12 00:34:35 -04:00
parent 4152c68c66
commit e622f82521

View File

@ -223,6 +223,8 @@ docstring ListingsParam::validate(string const & par) const
return bformat(_("Try one of %1$s."), from_utf8(info_)); return bformat(_("Try one of %1$s."), from_utf8(info_));
else else
return bformat(_("I guess you mean %1$s."), from_utf8(matching_names)); return bformat(_("I guess you mean %1$s."), from_utf8(matching_names));
// this stifles a warning but upsets coverity
// coverity[UNREACHABLE]
return docstring(); return docstring();
} }
case SUBSETOF: case SUBSETOF:
@ -685,6 +687,8 @@ docstring ParValidator::validate(string const & name,
return bformat(_("Parameters starting with '%1$s': %2$s"), return bformat(_("Parameters starting with '%1$s': %2$s"),
from_utf8(name), from_utf8(matching_names)); from_utf8(name), from_utf8(matching_names));
} }
// this stifles a warning but upsets coverity
// coverity[UNREACHABLE]
return docstring(); return docstring();
} }