fixed some "Declarator is never used" Rider warnings (#5535)
This commit is contained in:
parent
cc92b09ec1
commit
e4028f6820
|
@ -157,7 +157,7 @@ void ComplianceReportDialog::save()
|
|||
} catch (InternalError &e) {
|
||||
QMessageBox msg(QMessageBox::Critical,
|
||||
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,
|
||||
this);
|
||||
msg.exec();
|
||||
|
|
|
@ -1769,7 +1769,7 @@ void MainWindow::analyzeProject(const ProjectFile *projectFile, const bool check
|
|||
} catch (InternalError &e) {
|
||||
QMessageBox msg(QMessageBox::Critical,
|
||||
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,
|
||||
this);
|
||||
msg.exec();
|
||||
|
|
|
@ -33,7 +33,6 @@
|
|||
//---------------------------------------------------------------------------
|
||||
|
||||
// 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
|
||||
|
||||
// Register this check class (by creating a static instance of it)
|
||||
|
|
|
@ -40,7 +40,6 @@ namespace {
|
|||
}
|
||||
|
||||
// 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 CWE682(682U); // Incorrect Calculation
|
||||
//---------------------------------------------------------------------------
|
||||
|
|
Loading…
Reference in New Issue