fixed some "Declarator is never used" Rider warnings (#5535)

This commit is contained in:
Oliver Stöneberg 2023-10-09 18:06:35 +02:00 committed by GitHub
parent cc92b09ec1
commit e4028f6820
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 2 additions and 4 deletions

View File

@ -157,7 +157,7 @@ void ComplianceReportDialog::save()
} catch (InternalError &e) { } catch (InternalError &e) {
QMessageBox msg(QMessageBox::Critical, QMessageBox msg(QMessageBox::Critical,
tr("Save compliance report"), tr("Save compliance report"),
tr("Failed to import '%1', can not show files in compliance report").arg(prjfile), tr("Failed to import '%1' (%2), can not show files in compliance report").arg(prjfile).arg(QString::fromStdString(e.errorMessage)),
QMessageBox::Ok, QMessageBox::Ok,
this); this);
msg.exec(); msg.exec();

View File

@ -1769,7 +1769,7 @@ void MainWindow::analyzeProject(const ProjectFile *projectFile, const bool check
} catch (InternalError &e) { } catch (InternalError &e) {
QMessageBox msg(QMessageBox::Critical, QMessageBox msg(QMessageBox::Critical,
tr("Cppcheck"), tr("Cppcheck"),
tr("Failed to import '%1', analysis is stopped").arg(prjfile), tr("Failed to import '%1' (%2), analysis is stopped").arg(prjfile).arg(QString::fromStdString(e.errorMessage)),
QMessageBox::Ok, QMessageBox::Ok,
this); this);
msg.exec(); msg.exec();

View File

@ -33,7 +33,6 @@
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
// CWE ids used // CWE ids used
static const CWE CWE398(398U); // Indicator of Poor Code Quality
static const CWE CWE758(758U); // Reliance on Undefined, Unspecified, or Implementation-Defined Behavior static const CWE CWE758(758U); // Reliance on Undefined, Unspecified, or Implementation-Defined Behavior
// Register this check class (by creating a static instance of it) // Register this check class (by creating a static instance of it)

View File

@ -40,7 +40,6 @@ namespace {
} }
// CWE IDs used: // CWE IDs used:
static const CWE CWE398(398U); // Indicator of Poor Code Quality
static const CWE CWE467(467U); // Use of sizeof() on a Pointer Type static const CWE CWE467(467U); // Use of sizeof() on a Pointer Type
static const CWE CWE682(682U); // Incorrect Calculation static const CWE CWE682(682U); // Incorrect Calculation
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------