Task #91092 - added.err

back to task #91092
download
Error: COMPILER_WARNING (CWE-252):
kdegraphics-mobipocket-25.12.0/tools/mobidump.cpp: scope_hint: In function ‘int main(int, char**)’
kdegraphics-mobipocket-25.12.0/tools/mobidump.cpp:37:14: warning[-Wunused-result]: ignoring return value of ‘virtual bool QFile::open(QIODeviceBase::OpenMode)’, declared with attribute ‘nodiscard’
#   37 |     file.open(QFile::ReadOnly);
#      |     ~~~~~~~~~^~~~~~~~~~~~~~~~~
/usr/include/qt6/QtCore/qfileinfo.h:9: included_from: Included from here.
/usr/include/qt6/QtCore/QFileInfo:1: included_from: Included from here.
kdegraphics-mobipocket-25.12.0/tools/mobidump.cpp:3: included_from: Included from here.
/usr/include/qt6/QtCore/qfile.h:291:32: note: declared here
#  291 |     QFILE_MAYBE_NODISCARD bool open(OpenMode flags) override;
#      |                                ^~~~
#   35|   
#   36|       QFile file(url);
#   37|->     file.open(QFile::ReadOnly);
#   38|       Mobipocket::Document doc(&file);
#   39|