On Thu, Feb 16, 2023 at 07:22:10PM +0100, Stefano
Brivio wrote:
The newly introduced die() calls exit(), but
cppcheck doesn't see it
and warns about possibly invalid arguments used after the check which
triggers die(). Add return statements to silence the warnings.
Signed-off-by: Stefano Brivio <sbrivio(a)redhat.com>
Oof, that's super ugly. Any chance that cppcheck will recognize the
((noreturn)) attribute if we added it to die()?
It doesn't. I guess Library::isnoreturn() in lib/library.cpp is fooled
by the way we build die with a macro. I couldn't find a corresponding
ticket, there's a vaguely related false _negative_ here: