Skip to content

Commit e4028f6

Browse files
authored
fixed some "Declarator is never used" Rider warnings (#5535)
1 parent cc92b09 commit e4028f6

4 files changed

Lines changed: 2 additions & 4 deletions

File tree

gui/compliancereportdialog.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ void ComplianceReportDialog::save()
157157
} catch (InternalError &e) {
158158
QMessageBox msg(QMessageBox::Critical,
159159
tr("Save compliance report"),
160-
tr("Failed to import '%1', can not show files in compliance report").arg(prjfile),
160+
tr("Failed to import '%1' (%2), can not show files in compliance report").arg(prjfile).arg(QString::fromStdString(e.errorMessage)),
161161
QMessageBox::Ok,
162162
this);
163163
msg.exec();

gui/mainwindow.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1769,7 +1769,7 @@ void MainWindow::analyzeProject(const ProjectFile *projectFile, const bool check
17691769
} catch (InternalError &e) {
17701770
QMessageBox msg(QMessageBox::Critical,
17711771
tr("Cppcheck"),
1772-
tr("Failed to import '%1', analysis is stopped").arg(prjfile),
1772+
tr("Failed to import '%1' (%2), analysis is stopped").arg(prjfile).arg(QString::fromStdString(e.errorMessage)),
17731773
QMessageBox::Ok,
17741774
this);
17751775
msg.exec();

lib/check64bit.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@
3333
//---------------------------------------------------------------------------
3434

3535
// CWE ids used
36-
static const CWE CWE398(398U); // Indicator of Poor Code Quality
3736
static const CWE CWE758(758U); // Reliance on Undefined, Unspecified, or Implementation-Defined Behavior
3837

3938
// Register this check class (by creating a static instance of it)

lib/checksizeof.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ namespace {
4040
}
4141

4242
// CWE IDs used:
43-
static const CWE CWE398(398U); // Indicator of Poor Code Quality
4443
static const CWE CWE467(467U); // Use of sizeof() on a Pointer Type
4544
static const CWE CWE682(682U); // Incorrect Calculation
4645
//---------------------------------------------------------------------------

0 commit comments

Comments
 (0)