From 05dfc6e9f685ffdfadab4b4d86916fcfaee98963 Mon Sep 17 00:00:00 2001 From: chrchr-github <78114321+chrchr-github@users.noreply.github.com> Date: Thu, 2 May 2024 17:12:46 +0200 Subject: [PATCH 1/8] Update qt.cfg Co-authored-by: Dominik Strasser From 44ad6a1c4cb81b0c2b1f68eb2fe52e60049f5afd Mon Sep 17 00:00:00 2001 From: chrchr-github <78114321+chrchr-github@users.noreply.github.com> Date: Thu, 2 May 2024 17:57:55 +0200 Subject: [PATCH 2/8] Update qt.cfg --- cfg/qt.cfg | 100 ++++++++++++++++++++++++++++++++++++++++++++++------- 1 file changed, 88 insertions(+), 12 deletions(-) diff --git a/cfg/qt.cfg b/cfg/qt.cfg index 824c4bf2881..0379135d672 100644 --- a/cfg/qt.cfg +++ b/cfg/qt.cfg @@ -2297,7 +2297,7 @@ - + @@ -2309,10 +2309,27 @@ + + + + + false + + + + + + + + + + false + + - + false @@ -2328,6 +2345,63 @@ + + + false + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + + false + + + + + + + false + + + + + + + + + + false + + + + + + false @@ -2336,7 +2410,7 @@ - + false @@ -2353,17 +2427,19 @@ - - - + + false - + - - - - - + + + + + false + + + From dfefcf22196040f3221c1c88772d196dc80a23be Mon Sep 17 00:00:00 2001 From: chrchr-github <78114321+chrchr-github@users.noreply.github.com> Date: Wed, 18 Mar 2026 10:38:49 +0100 Subject: [PATCH 3/8] Update qt.cfg --- cfg/qt.cfg | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/cfg/qt.cfg b/cfg/qt.cfg index dba54d2516f..2ed361a5e2c 100644 --- a/cfg/qt.cfg +++ b/cfg/qt.cfg @@ -2307,7 +2307,7 @@ - + @@ -2331,9 +2331,10 @@ - + false + @@ -2430,6 +2431,17 @@ + + + + false + + + + + + + false From ba7948c158fafe2588904533269e5d2985ee6483 Mon Sep 17 00:00:00 2001 From: chrchr-github <78114321+chrchr-github@users.noreply.github.com> Date: Wed, 18 Mar 2026 10:52:29 +0100 Subject: [PATCH 4/8] Update qt.cfg --- cfg/qt.cfg | 1 + 1 file changed, 1 insertion(+) diff --git a/cfg/qt.cfg b/cfg/qt.cfg index 2ed361a5e2c..a77e9cce382 100644 --- a/cfg/qt.cfg +++ b/cfg/qt.cfg @@ -2442,6 +2442,7 @@ + false From e69b0d8dce52cbf4fab7aeee1aeba5a1d5e64645 Mon Sep 17 00:00:00 2001 From: chrchr-github <78114321+chrchr-github@users.noreply.github.com> Date: Wed, 18 Mar 2026 11:09:22 +0100 Subject: [PATCH 5/8] Update qt.cfg [skip ci] --- cfg/qt.cfg | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/cfg/qt.cfg b/cfg/qt.cfg index a77e9cce382..a942e174c80 100644 --- a/cfg/qt.cfg +++ b/cfg/qt.cfg @@ -2457,7 +2457,14 @@ - + + + false + + + + + false From 101066564642763b100daab619be8cb78926ee28 Mon Sep 17 00:00:00 2001 From: chrchr-github <78114321+chrchr-github@users.noreply.github.com> Date: Wed, 18 Mar 2026 11:45:30 +0100 Subject: [PATCH 6/8] Update mainwindow.cpp [skip ci] --- tools/triage/mainwindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/triage/mainwindow.cpp b/tools/triage/mainwindow.cpp index 8e5e4d39020..564d6e1bcf2 100644 --- a/tools/triage/mainwindow.cpp +++ b/tools/triage/mainwindow.cpp @@ -81,7 +81,7 @@ MainWindow::MainWindow(QWidget *parent) : std::srand(static_cast(std::time(nullptr))); QDir workFolder(WORK_FOLDER); if (!workFolder.exists()) { - workFolder.mkdir(WORK_FOLDER); + (void)workFolder.mkdir(WORK_FOLDER); } ui->results->setContextMenuPolicy(Qt::CustomContextMenu); From 6c6b544744f0ee4b7caca3a7d3b49362c3b562c8 Mon Sep 17 00:00:00 2001 From: chrchr-github <78114321+chrchr-github@users.noreply.github.com> Date: Wed, 18 Mar 2026 15:00:10 +0100 Subject: [PATCH 7/8] Update qt.cpp --- test/cfg/qt.cpp | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/test/cfg/qt.cpp b/test/cfg/qt.cpp index d508eeef487..eaefefe6732 100644 --- a/test/cfg/qt.cpp +++ b/test/cfg/qt.cpp @@ -32,6 +32,7 @@ #include #include #include +#include // TODO: this is actually avilable via Core5Compat but I could not get it to work with pkg-config #if (QT_VERSION < QT_VERSION_CHECK(6, 0, 0)) @@ -54,6 +55,27 @@ int ignoredReturnValue_QSize_width(const QSize &s) return s.width(); } + +void ignoredReturnValue_QDir(const QString& dirname) +{ + // cppcheck-suppress ignoredReturnValue + QDir::exists(dirname); + + // cppcheck-suppress ignoredReturnValue + QDir::mkdir(dirname); + + QDir dir(dirname); + // cppcheck-suppress ignoredReturnValue + dir.count(); + + // cppcheck-suppress ignoredReturnValue + dir.filePath("abc"); + + // cppcheck-suppress ignoredReturnValue + dir.entryList(); +} + + void unusedVariable_QTransform() { // cppcheck-suppress unusedVariable From 2cbaab9431a94ec0e44ee4fd6da7025ad919c4b1 Mon Sep 17 00:00:00 2001 From: chrchr-github Date: Wed, 18 Mar 2026 19:23:52 +0100 Subject: [PATCH 8/8] Fix --- cfg/qt.cfg | 11 ++++++++--- test/cfg/qt.cpp | 9 +++++---- 2 files changed, 13 insertions(+), 7 deletions(-) diff --git a/cfg/qt.cfg b/cfg/qt.cfg index a942e174c80..5371e598568 100644 --- a/cfg/qt.cfg +++ b/cfg/qt.cfg @@ -2360,6 +2360,7 @@ false + @@ -2370,13 +2371,14 @@ false + - + false @@ -2386,11 +2388,12 @@ - - + + false + @@ -2398,6 +2401,7 @@ false + @@ -2408,6 +2412,7 @@ false + diff --git a/test/cfg/qt.cpp b/test/cfg/qt.cpp index eaefefe6732..4c6c881b752 100644 --- a/test/cfg/qt.cpp +++ b/test/cfg/qt.cpp @@ -58,13 +58,14 @@ int ignoredReturnValue_QSize_width(const QSize &s) void ignoredReturnValue_QDir(const QString& dirname) { - // cppcheck-suppress ignoredReturnValue - QDir::exists(dirname); + QDir dir(dirname); // cppcheck-suppress ignoredReturnValue - QDir::mkdir(dirname); + dir.exists("abc"); + + // cppcheck-suppress ignoredReturnErrorCode + dir.mkdir("abc"); - QDir dir(dirname); // cppcheck-suppress ignoredReturnValue dir.count();