Error: COMPILER_WARNING (CWE-252): [#def1] kwallet-6.22.0/src/runtime/ksecretd/kwalletfreedesktopattributes.cpp: scope_hint: In member function ‘void KWalletFreedesktopAttributes::read()’ kwallet-6.22.0/src/runtime/ksecretd/kwalletfreedesktopattributes.cpp:36:18: warning[-Wunused-result]: ignoring return value of ‘virtual bool QFile::open(QIODeviceBase::OpenMode)’, declared with attribute ‘nodiscard’ # 36 | file.open(QIODevice::ReadOnly | QIODevice::Text); # | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/qt6/QtCore/qdir.h:11: included_from: Included from here. /usr/include/qt6/QtCore/QDir:1: included_from: Included from here. kwallet-6.22.0/src/runtime/ksecretd/kwalletfreedesktopattributes.cpp:12: 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; # | ^~~~ # 34| { # 35| QFile file(_path); # 36|-> file.open(QIODevice::ReadOnly | QIODevice::Text); # 37| if (!file.isOpen()) { # 38| qCDebug(KSECRETD_LOG) << "Can't read attributes file " << _path; Error: COMPILER_WARNING (CWE-252): [#def2] kwallet-6.22.0/src/runtime/ksecretd/kwalletportalsecrets.cpp: scope_hint: In member function ‘void KWalletPortalSecrets::walletOpened(int, int)’ kwallet-6.22.0/src/runtime/ksecretd/kwalletportalsecrets.cpp:69:17: warning[-Wunused-result]: ignoring return value of ‘bool QFile::open(int, QIODeviceBase::OpenMode, QFileDevice::FileHandleFlags)’, declared with attribute ‘nodiscard’ # 69 | outFile.open(request.fd, QIODevice::ReadWrite); # | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/qt6/QtCore/qdir.h:11: included_from: Included from here. /usr/include/qt6/QtCore/QtCore:91: included_from: Included from here. /usr/include/qt6/QtDBus/QtDBusDepends:3: included_from: Included from here. /usr/include/qt6/QtDBus/QtDBus:3: included_from: Included from here. kwallet-6.22.0/redhat-linux-build/src/runtime/ksecretd/kwalletportalsecretsadaptor.h:16: included_from: Included from here. kwallet-6.22.0/src/runtime/ksecretd/kwalletportalsecrets.cpp:10: included_from: Included from here. /usr/include/qt6/QtCore/qfile.h:294:32: note: declared here # 294 | QFILE_MAYBE_NODISCARD bool open(int fd, OpenMode ioFlags, FileHandleFlags handleFlags=DontCloseHandle); # | ^~~~ # 67| # 68| QFile outFile; # 69|-> outFile.open(request.fd, QIODevice::ReadWrite); # 70| # 71| outFile.write(secret); Error: COMPILER_WARNING (CWE-477): [#def3] /usr/include/KF6/KI18n/KLocalizedString:1: included_from: Included from here. kwallet-6.22.0/src/runtime/kwalletbackend/backendpersisthandler.cpp:11: included_from: Included from here. kwallet-6.22.0/src/runtime/kwalletbackend/backendpersisthandler.cpp: scope_hint: In member function ‘virtual int KWallet::GpgPersistHandler::write(KWallet::Backend*, QSaveFile&, QByteArray&, WId)’ kwallet-6.22.0/src/runtime/kwalletbackend/backendpersisthandler.cpp:466:56: warning[-Wdeprecated-declarations]: ‘const char* GpgME::Error::asString() const’ is deprecated # 466 | res.error().asString())); # | ~~~~~~~~~~~~~~~~~~~~^~ /usr/include/gpgme++/context.h:29: included_from: Included from here. kwallet-6.22.0/src/runtime/kwalletbackend/backendpersisthandler.cpp:20: included_from: Included from here. /usr/include/gpgme++/error.h:53:36: note: declared here # 53 | GPGMEPP_DEPRECATED const char *asString() const; # | ^~~~~~~~ # 464| wb->_name.toHtmlEscaped(), # 465| gpgerr, # 466|-> res.error().asString())); # 467| qCDebug(KWALLETBACKEND_LOG) << "GpgME encryption error: " << gpgerr; # 468| sf.cancelWriting(); Error: COMPILER_WARNING (CWE-477): [#def4] kwallet-6.22.0/src/runtime/kwalletbackend/backendpersisthandler.cpp: scope_hint: In member function ‘virtual int KWallet::GpgPersistHandler::read(KWallet::Backend*, QFile&, WId)’ kwallet-6.22.0/src/runtime/kwalletbackend/backendpersisthandler.cpp:533:92: warning[-Wdeprecated-declarations]: ‘const char* GpgME::Error::asString() const’ is deprecated # 533 | qCDebug(KWALLETBACKEND_LOG) << "Error decrypting message: " << res.error().asString() << ", code " << res.error().code() << ", source " # | ~~~~~~~~~~~~~~~~~~~~^~ /usr/include/gpgme++/error.h:53:36: note: declared here # 53 | GPGMEPP_DEPRECATED const char *asString() const; # | ^~~~~~~~ # 531| GpgME::DecryptionResult res = ctx->decrypt(encryptedData, decryptedData); # 532| if (res.error()) { # 533|-> qCDebug(KWALLETBACKEND_LOG) << "Error decrypting message: " << res.error().asString() << ", code " << res.error().code() << ", source " # 534| << res.error().source(); # 535| KGuiItem btnRetry(i18n("Retry")); Error: COMPILER_WARNING (CWE-477): [#def5] kwallet-6.22.0/src/runtime/kwalletbackend/backendpersisthandler.cpp:543:72: warning[-Wdeprecated-declarations]: ‘const char* GpgME::Error::asString() const’ is deprecated # 543 | res.error().asString()), # | ~~~~~~~~~~~~~~~~~~~~^~ /usr/include/gpgme++/error.h:53:36: note: declared here # 53 | GPGMEPP_DEPRECATED const char *asString() const; # | ^~~~~~~~ # 541| "please ensure it's inserted then try again.<br><br>GPG error was <b>%2</b></qt>", # 542| wb->_name.toHtmlEscaped(), # 543|-> res.error().asString()), # 544| i18n("kwalletd GPG backend"), # 545| btnRetry, Error: COMPILER_WARNING (CWE-457): [#def6] kwallet-6.22.0/src/runtime/kwalletbackend/cbc.cc: scope_hint: In member function ‘CipherBlockChain::encrypt(void*, int)’ kwallet-6.22.0/src/runtime/kwalletbackend/cbc.cc:105:16: warning[-Wmaybe-uninitialized]: ‘rc’ may be used uninitialized # 105 | return rc; # | ^~ kwallet-6.22.0/src/runtime/kwalletbackend/cbc.cc:77:13: note: ‘rc’ was declared here # 77 | int rc; # | ^~ # 103| } # 104| # 105|-> return rc; # 106| } # 107| return -1; Error: COMPILER_WARNING (CWE-909): [#def7] kwallet-6.22.0/src/runtime/kwalletd/secretserviceclient.cpp:28:137: warning[-Wmissing-field-initializers]: missing initializer for member ‘SecretSchema::reserved1’ # 26| "org.qt.keychain", # 27| SECRET_SCHEMA_DONT_MATCH_NAME, # 28|-> {{"user", SECRET_SCHEMA_ATTRIBUTE_STRING}, {"server", SECRET_SCHEMA_ATTRIBUTE_STRING}, {"type", SECRET_SCHEMA_ATTRIBUTE_STRING}}}; # 29| # 30| return &schema; Error: COMPILER_WARNING (CWE-909): [#def8] kwallet-6.22.0/src/runtime/kwalletd/secretserviceclient.cpp:28:137: warning[-Wmissing-field-initializers]: missing initializer for member ‘SecretSchema::reserved2’ # 26| "org.qt.keychain", # 27| SECRET_SCHEMA_DONT_MATCH_NAME, # 28|-> {{"user", SECRET_SCHEMA_ATTRIBUTE_STRING}, {"server", SECRET_SCHEMA_ATTRIBUTE_STRING}, {"type", SECRET_SCHEMA_ATTRIBUTE_STRING}}}; # 29| # 30| return &schema; Error: COMPILER_WARNING (CWE-909): [#def9] kwallet-6.22.0/src/runtime/kwalletd/secretserviceclient.cpp:28:137: warning[-Wmissing-field-initializers]: missing initializer for member ‘SecretSchema::reserved3’ # 26| "org.qt.keychain", # 27| SECRET_SCHEMA_DONT_MATCH_NAME, # 28|-> {{"user", SECRET_SCHEMA_ATTRIBUTE_STRING}, {"server", SECRET_SCHEMA_ATTRIBUTE_STRING}, {"type", SECRET_SCHEMA_ATTRIBUTE_STRING}}}; # 29| # 30| return &schema; Error: COMPILER_WARNING (CWE-909): [#def10] kwallet-6.22.0/src/runtime/kwalletd/secretserviceclient.cpp:28:137: warning[-Wmissing-field-initializers]: missing initializer for member ‘SecretSchema::reserved4’ # 26| "org.qt.keychain", # 27| SECRET_SCHEMA_DONT_MATCH_NAME, # 28|-> {{"user", SECRET_SCHEMA_ATTRIBUTE_STRING}, {"server", SECRET_SCHEMA_ATTRIBUTE_STRING}, {"type", SECRET_SCHEMA_ATTRIBUTE_STRING}}}; # 29| # 30| return &schema; Error: COMPILER_WARNING (CWE-909): [#def11] kwallet-6.22.0/src/runtime/kwalletd/secretserviceclient.cpp:28:137: warning[-Wmissing-field-initializers]: missing initializer for member ‘SecretSchema::reserved5’ # 26| "org.qt.keychain", # 27| SECRET_SCHEMA_DONT_MATCH_NAME, # 28|-> {{"user", SECRET_SCHEMA_ATTRIBUTE_STRING}, {"server", SECRET_SCHEMA_ATTRIBUTE_STRING}, {"type", SECRET_SCHEMA_ATTRIBUTE_STRING}}}; # 29| # 30| return &schema; Error: COMPILER_WARNING (CWE-909): [#def12] kwallet-6.22.0/src/runtime/kwalletd/secretserviceclient.cpp:28:137: warning[-Wmissing-field-initializers]: missing initializer for member ‘SecretSchema::reserved6’ # 26| "org.qt.keychain", # 27| SECRET_SCHEMA_DONT_MATCH_NAME, # 28|-> {{"user", SECRET_SCHEMA_ATTRIBUTE_STRING}, {"server", SECRET_SCHEMA_ATTRIBUTE_STRING}, {"type", SECRET_SCHEMA_ATTRIBUTE_STRING}}}; # 29| # 30| return &schema; Error: COMPILER_WARNING (CWE-909): [#def13] kwallet-6.22.0/src/runtime/kwalletd/secretserviceclient.cpp:28:137: warning[-Wmissing-field-initializers]: missing initializer for member ‘SecretSchema::reserved7’ # 26| "org.qt.keychain", # 27| SECRET_SCHEMA_DONT_MATCH_NAME, # 28|-> {{"user", SECRET_SCHEMA_ATTRIBUTE_STRING}, {"server", SECRET_SCHEMA_ATTRIBUTE_STRING}, {"type", SECRET_SCHEMA_ATTRIBUTE_STRING}}}; # 29| # 30| return &schema; Error: COMPILER_WARNING (CWE-909): [#def14] kwallet-6.22.0/src/runtime/kwalletd/secretserviceclient.cpp: scope_hint: In function ‘const SecretSchema* qtKeychainSchema()’ kwallet-6.22.0/src/runtime/kwalletd/secretserviceclient.cpp:28:137: warning[-Wmissing-field-initializers]: missing initializer for member ‘SecretSchema::reserved’ # 28 | {{"user", SECRET_SCHEMA_ATTRIBUTE_STRING}, {"server", SECRET_SCHEMA_ATTRIBUTE_STRING}, {"type", SECRET_SCHEMA_ATTRIBUTE_STRING}}}; # | ^ # 26| "org.qt.keychain", # 27| SECRET_SCHEMA_DONT_MATCH_NAME, # 28|-> {{"user", SECRET_SCHEMA_ATTRIBUTE_STRING}, {"server", SECRET_SCHEMA_ATTRIBUTE_STRING}, {"type", SECRET_SCHEMA_ATTRIBUTE_STRING}}}; # 29| # 30| return &schema;
| analyzer-version-clippy | 1.92.0 |
| analyzer-version-cppcheck | 2.19.1 |
| analyzer-version-gcc | 16.0.0 |
| analyzer-version-gcc-analyzer | 16.0.0 |
| analyzer-version-shellcheck | 0.11.0 |
| analyzer-version-unicontrol | 0.0.2 |
| enabled-plugins | clippy, cppcheck, gcc, shellcheck, unicontrol |
| exit-code | 0 |
| host | ip-172-16-1-101.us-west-2.compute.internal |
| known-false-positives | /usr/share/csmock/known-false-positives.js |
| known-false-positives-rpm | known-false-positives-0.0.0.20250521.132812.g8eff701.main-1.el9.noarch |
| mock-config | fedora-rawhide-x86_64 |
| project-name | kf6-kwallet-6.22.0-1.fc44 |
| store-results-to | /tmp/tmp05cs6c6m/kf6-kwallet-6.22.0-1.fc44.tar.xz |
| time-created | 2026-01-08 18:14:32 |
| time-finished | 2026-01-08 18:17:17 |
| tool | csmock |
| tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,cppcheck,clippy,shellcheck,unicontrol' '-o' '/tmp/tmp05cs6c6m/kf6-kwallet-6.22.0-1.fc44.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmp05cs6c6m/kf6-kwallet-6.22.0-1.fc44.src.rpm' |
| tool-version | csmock-3.8.3.20251215.161544.g62de9a5-1.el9 |