summaryrefslogtreecommitdiff
path: root/dev-util/cppcheck/files
diff options
context:
space:
mode:
authorLiguros - Gitlab CI/CD [develop] <gitlab@liguros.net>2024-07-15 05:56:32 +0000
committerLiguros - Gitlab CI/CD [develop] <gitlab@liguros.net>2024-07-15 05:56:32 +0000
commit9549199f4a897d4ef2624c395d34f785b74189db (patch)
tree12aec730da27a0b96a4396fa9a8f97cf1e2696b4 /dev-util/cppcheck/files
parentf003095531247db30c44c4f935ecbb216a3014fc (diff)
downloadsrcux-9549199f4a897d4ef2624c395d34f785b74189db.tar.gz
srcux-9549199f4a897d4ef2624c395d34f785b74189db.tar.xz
srcux-9549199f4a897d4ef2624c395d34f785b74189db.zip
Adding metadata
Diffstat (limited to 'dev-util/cppcheck/files')
-rw-r--r--dev-util/cppcheck/files/cppcheck-2.13.0-32-bit-tests.patch28
1 files changed, 28 insertions, 0 deletions
diff --git a/dev-util/cppcheck/files/cppcheck-2.13.0-32-bit-tests.patch b/dev-util/cppcheck/files/cppcheck-2.13.0-32-bit-tests.patch
new file mode 100644
index 000000000000..a31a014f5968
--- /dev/null
+++ b/dev-util/cppcheck/files/cppcheck-2.13.0-32-bit-tests.patch
@@ -0,0 +1,28 @@
+https://bugs.gentoo.org/935368
+https://github.com/danmar/cppcheck/commit/9118d330d387e73a20e1bc46c65387306afa0895
+
+From 9118d330d387e73a20e1bc46c65387306afa0895 Mon Sep 17 00:00:00 2001
+From: chrchr-github <78114321+chrchr-github@users.noreply.github.com>
+Date: Sat, 23 Dec 2023 20:59:59 +0100
+Subject: [PATCH] Fix test failure on 32bit platform (#5803)
+
+--- a/test/testother.cpp
++++ b/test/testother.cpp
+@@ -2173,6 +2173,7 @@ class TestOther : public TestFixture {
+ "}\n");
+ ASSERT_EQUALS("[test.cpp:1]: (performance) Function parameter 't' should be passed by const reference.\n", errout.str());
+
++ Settings settings0 = settingsBuilder(_settings).platform(Platform::Type::Unix64).build();
+ check("struct S {\n" // #12138
+ " union {\n"
+ " int a = 0;\n"
+@@ -2189,7 +2190,7 @@ class TestOther : public TestFixture {
+ "};\n"
+ "void f(S s) {\n"
+ " if (s.x > s.y) {}\n"
+- "}\n");
++ "}\n", /*filename*/ nullptr, /*inconclusive*/ true, /*runSimpleChecks*/ true, /*verbose*/ false, &settings0);
+ ASSERT_EQUALS("", errout.str());
+
+ check("struct S { std::list<int> l; };\n" // #12147
+