Task #695 - fixed.err

back to task #695
download
Error: CLANG_WARNING:
kinfocenter-6.0.3-build/kinfocenter-6.0.3/Modules/devinfo/devicelisting.cpp:135:9: warning[cplusplus.NewDeleteLeaks]: Potential leak of memory pointed to by 'solhelp'
#  133|       if (!dev.isValid()) {
#  134|           // Probably the device already disappeared again.
#  135|->         return;
#  136|       }
#  137|   

Error: COMPILER_WARNING (CWE-477):
kinfocenter-6.0.3-build/kinfocenter-6.0.3/Modules/kwinsupportinfo/main.cpp: scope_hint: In constructor ‘KCMKWinSupportInfo::KCMKWinSupportInfo(QObject*, const KPluginMetaData&)’
kinfocenter-6.0.3-build/kinfocenter-6.0.3/Modules/kwinsupportinfo/main.cpp:21:74: warning[-Wdeprecated-declarations]: ‘static QString QLibraryInfo::location(LibraryLocation)’ is deprecated: Use path()
#   21 |         m_outputContext = new CommandOutputContext(QLibraryInfo::location(QLibraryInfo::BinariesPath) + QStringLiteral("/qdbus"),
#      |                                                    ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/qt6/QtCore/QLibraryInfo:1: included_from: Included from here.
kinfocenter-6.0.3-build/kinfocenter-6.0.3/Modules/kwinsupportinfo/main.cpp:9: included_from: Included from here.
/usr/include/qt6/QtCore/qlibraryinfo.h:48:20: note: declared here
#   48 |     static QString location(LibraryLocation location)
#      |                    ^~~~~~~~
#   19|           : KQuickConfigModule(parent, data)
#   20|       {
#   21|->         m_outputContext = new CommandOutputContext(QLibraryInfo::location(QLibraryInfo::BinariesPath) + QStringLiteral("/qdbus"),
#   22|                                                      {QStringLiteral("org.kde.KWin"), QStringLiteral("/KWin"), QStringLiteral("supportInformation")},
#   23|                                                      parent);

Error: COMPILER_WARNING:
kinfocenter-6.0.3-build/kinfocenter-6.0.3/Modules/usbview/usbdb.cpp: scope_hint: In constructor ‘USBDB::USBDB()’
kinfocenter-6.0.3-build/kinfocenter-6.0.3/Modules/usbview/usbdb.cpp:53:50: warning[-Wzero-as-null-pointer-constant]: zero as null pointer constant
#   53 |                 id = match.capturedView(1).toInt(0, 16);
#      |                                                  ^
#   51|               QRegularExpressionMatch match;
#   52|               if (line.startsWith('C') && (match = cls.match(line)).hasMatch()) {
#   53|->                 id = match.capturedView(1).toInt(0, 16);
#   54|                   const QString name = match.capturedView(2).trimmed().toString();
#   55|                   _classes.insert(QStringLiteral("%1").arg(id), name);

Error: COMPILER_WARNING:
kinfocenter-6.0.3-build/kinfocenter-6.0.3/Modules/usbview/usbdb.cpp:57:64: warning[-Wzero-as-null-pointer-constant]: zero as null pointer constant
#   57 |                 const int protid = match.capturedView(1).toInt(0, 16);
#      |                                                                ^
#   55|                   _classes.insert(QStringLiteral("%1").arg(id), name);
#   56|               } else if (id >= 0 && subid >= 0 && (match = prot.match(line)).hasMatch()) {
#   57|->                 const int protid = match.capturedView(1).toInt(0, 16);
#   58|                   const QString name = match.capturedView(2).trimmed().toString();
#   59|                   _classes.insert(QStringLiteral("%1-%2-%3").arg(id).arg(subid).arg(protid), name);

Error: COMPILER_WARNING:
kinfocenter-6.0.3-build/kinfocenter-6.0.3/Modules/usbview/usbdb.cpp:61:53: warning[-Wzero-as-null-pointer-constant]: zero as null pointer constant
#   61 |                 subid = match.capturedView(1).toInt(0, 16);
#      |                                                     ^
#   59|                   _classes.insert(QStringLiteral("%1-%2-%3").arg(id).arg(subid).arg(protid), name);
#   60|               } else if (id >= 0 && (match = subclass.match(line)).hasMatch()) {
#   61|->                 subid = match.capturedView(1).toInt(0, 16);
#   62|                   const QString name = match.capturedView(2).trimmed().toString();
#   63|                   _classes.insert(QStringLiteral("%1-%2").arg(id).arg(subid), name);

Error: COMPILER_WARNING:
kinfocenter-6.0.3-build/kinfocenter-6.0.3/Modules/usbview/usbdb.cpp:65:50: warning[-Wzero-as-null-pointer-constant]: zero as null pointer constant
#   65 |                 id = match.capturedView(1).toInt(0, 16);
#      |                                                  ^
#   63|                   _classes.insert(QStringLiteral("%1-%2").arg(id).arg(subid), name);
#   64|               } else if ((match = vendor.match(line)).hasMatch()) {
#   65|->                 id = match.capturedView(1).toInt(0, 16);
#   66|                   const QString name = match.captured(2);
#   67|                   _ids.insert(QStringLiteral("%1").arg(id), name);

Error: COMPILER_WARNING:
kinfocenter-6.0.3-build/kinfocenter-6.0.3/Modules/usbview/usbdb.cpp:69:53: warning[-Wzero-as-null-pointer-constant]: zero as null pointer constant
#   69 |                 subid = match.capturedView(1).toInt(0, 16);
#      |                                                     ^
#   67|                   _ids.insert(QStringLiteral("%1").arg(id), name);
#   68|               } else if (id >= 0 && (match = product.match(line)).hasMatch()) {
#   69|->                 subid = match.capturedView(1).toInt(0, 16);
#   70|                   const QString name = match.capturedView(2).trimmed().toString();
#   71|                   _ids.insert(QStringLiteral("%1-%2").arg(id).arg(subid), name);