From 983d4718a2e8b70086cc6e38e7c2aa88af3baafc Mon Sep 17 00:00:00 2001 From: Christopher Wellons Date: Wed, 26 Apr 2023 11:13:26 -0400 Subject: [PATCH] Patch two Cppcheck bugs for upcoming GCC 13 Cppcheck does not compile with GCC 13 without these fixes, see: https://gcc.gnu.org/gcc-13/porting_to.html --- src/cppcheck-gcc13.patch | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 src/cppcheck-gcc13.patch diff --git a/src/cppcheck-gcc13.patch b/src/cppcheck-gcc13.patch new file mode 100644 index 0000000..4e4953a --- /dev/null +++ b/src/cppcheck-gcc13.patch @@ -0,0 +1,18 @@ +GCC 13 has stricter allocator checks: +https://gcc.gnu.org/gcc-13/porting_to.html + +Also, libstdc++ no longer leaks stdint.h definitions. +--- a/lib/mathlib.cpp ++++ b/lib/mathlib.cpp +@@ -25,2 +25,3 @@ + #include ++#include + #include +--- a/lib/smallvector.h ++++ b/lib/smallvector.h +@@ -43,2 +43,5 @@ + {} ++ ++ template TaggedAllocator(const TaggedAllocator); ++ template struct rebind { using other = TaggedAllocator; }; + };