diff --git a/gui/compliancereportdialog.cpp b/gui/compliancereportdialog.cpp index c7c654ad3..afd68b2b9 100644 --- a/gui/compliancereportdialog.cpp +++ b/gui/compliancereportdialog.cpp @@ -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(); diff --git a/gui/mainwindow.cpp b/gui/mainwindow.cpp index d9a09da06..4b027104e 100644 --- a/gui/mainwindow.cpp +++ b/gui/mainwindow.cpp @@ -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(); diff --git a/lib/check64bit.cpp b/lib/check64bit.cpp index c87bb2048..02196cfc0 100644 --- a/lib/check64bit.cpp +++ b/lib/check64bit.cpp @@ -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) diff --git a/lib/checksizeof.cpp b/lib/checksizeof.cpp index 059ca614f..848b8946c 100644 --- a/lib/checksizeof.cpp +++ b/lib/checksizeof.cpp @@ -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 //---------------------------------------------------------------------------