Task #1454 - kf6-kfilemetadata-6.0.0-2.fc40/scan-results.err

back to task #1454
download
Error: COMPILER_WARNING (CWE-477):
kf6-kfilemetadata-6.0.0-build/kfilemetadata-6.0.0/src/extractors/odfextractor.cpp: scope_hint: In member function ‘void KFileMetaData::OdfExtractor::parseMetaData(const QString&, const QByteArray&, KFileMetaData::ExtractionResult*)’
kf6-kfilemetadata-6.0.0-build/kfilemetadata-6.0.0/src/extractors/odfextractor.cpp:154:24: warning[-Wdeprecated-declarations]: ‘bool QDomDocument::setContent(const QByteArray&, bool, QString*, int*, int*)’ is deprecated: Use the overload taking ParseOptions instead.
#  154 |     metaData.setContent(data, true);
#      |     ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~
/usr/include/qt6/QtXml/QDomDocument:1: included_from: Included from here.
kf6-kfilemetadata-6.0.0-build/kfilemetadata-6.0.0/src/extractors/odfextractor.cpp:16: included_from: Included from here.
/usr/include/qt6/QtXml/qdom.h:321:10: note: declared here
#  321 |     bool setContent(const QByteArray &text, bool namespaceProcessing, QString *errorMsg = nullptr, int *errorLine = nullptr, int *errorColumn = nullptr);
#      |          ^~~~~~~~~~
#  152|   {
#  153|       QDomDocument metaData(QStringLiteral("metaData"));
#  154|->     metaData.setContent(data, true);
#  155|   
#  156|       // parse metadata ...

Error: COMPILER_WARNING (CWE-477):
kf6-kfilemetadata-6.0.0-build/kfilemetadata-6.0.0/src/extractors/xmlextractor.cpp: scope_hint: In member function ‘virtual void KFileMetaData::XmlExtractor::extract(KFileMetaData::ExtractionResult*)’
kf6-kfilemetadata-6.0.0-build/kfilemetadata-6.0.0/src/extractors/xmlextractor.cpp:78:23: warning[-Wdeprecated-declarations]: ‘bool QDomDocument::setContent(QIODevice*, bool, QString*, int*, int*)’ is deprecated: Use the overload taking ParseOptions instead.
#   78 |         doc.setContent(&file, processNamespaces);
#      |         ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/qt6/QtXml/QDomNode:1: included_from: Included from here.
kf6-kfilemetadata-6.0.0-build/kfilemetadata-6.0.0/src/extractors/dublincoreextractor.h:13: included_from: Included from here.
kf6-kfilemetadata-6.0.0-build/kfilemetadata-6.0.0/src/extractors/xmlextractor.cpp:10: included_from: Included from here.
/usr/include/qt6/QtXml/qdom.h:325:10: note: declared here
#  325 |     bool setContent(QIODevice *dev, bool namespaceProcessing, QString *errorMsg = nullptr, int *errorLine = nullptr, int *errorColumn = nullptr);
#      |          ^~~~~~~~~~
#   76|           QDomDocument doc;
#   77|           const bool processNamespaces = true;
#   78|->         doc.setContent(&file, processNamespaces);
#   79|           QDomElement svg = doc.firstChildElement();
#   80|   

Error: COMPILER_WARNING (CWE-909):
kf6-kfilemetadata-6.0.0-build/kfilemetadata-6.0.0/src/propertyinfo.cpp:34:104: warning[-Wmissing-field-initializers]: missing initializer for member ‘KFileMetaData::PropertyInfoData::displayName’
#   34 | const static PropertyInfoData staticEmptyPropertyInfo{ Property::Empty, false, QStringLiteral("empty") };
#      |                                                                                                        ^
#   32|   };
#   33|   
#   34|-> const static PropertyInfoData staticEmptyPropertyInfo{ Property::Empty, false, QStringLiteral("empty") };
#   35|   
#   36|   const static std::array<PropertyInfoData, 78> staticPropertyInfo