summaryrefslogtreecommitdiff
path: root/sci-libs/coinor-couenne/files/coinor-couenne-0.5.8-fix-build-with-gcc11.patch
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2021-06-15 14:57:03 +0100
committerV3n3RiX <venerix@redcorelinux.org>2021-06-15 14:57:03 +0100
commitd18bf1e01b65ee4bf0c804e2843b282d3d4e5d7c (patch)
tree4a95cbc6ffdf13bad6ecbc7f8d5af99631984123 /sci-libs/coinor-couenne/files/coinor-couenne-0.5.8-fix-build-with-gcc11.patch
parente748ba9741f6540f4675c23e3e37b73e822c13a4 (diff)
gentoo resync : 15.06.2021
Diffstat (limited to 'sci-libs/coinor-couenne/files/coinor-couenne-0.5.8-fix-build-with-gcc11.patch')
-rw-r--r--sci-libs/coinor-couenne/files/coinor-couenne-0.5.8-fix-build-with-gcc11.patch43
1 files changed, 43 insertions, 0 deletions
diff --git a/sci-libs/coinor-couenne/files/coinor-couenne-0.5.8-fix-build-with-gcc11.patch b/sci-libs/coinor-couenne/files/coinor-couenne-0.5.8-fix-build-with-gcc11.patch
new file mode 100644
index 000000000000..339ce1a0e903
--- /dev/null
+++ b/sci-libs/coinor-couenne/files/coinor-couenne-0.5.8-fix-build-with-gcc11.patch
@@ -0,0 +1,43 @@
+https://bugs.gentoo.org/792798
+
+From debc5de2d0ac9654c01db080448df064b808c56e Mon Sep 17 00:00:00 2001
+From: Sam James <sam@gentoo.org>
+Date: Tue, 15 Jun 2021 04:24:22 +0000
+Subject: [PATCH] Fix build with GCC 11
+diff --git a/src/problem/CouenneProblem.hpp b/src/problem/CouenneProblem.hpp
+index e5b54a5..db28cfd 100644
+--- a/src/problem/CouenneProblem.hpp
++++ b/src/problem/CouenneProblem.hpp
+@@ -74,7 +74,7 @@ class Nauty;
+ #define COUENNE_EPS_SYMM 1e-8
+
+ struct myclass0 {
+- inline bool operator() (register const Node &a, register const Node &b) {
++ inline bool operator() (register const Node &a, register const Node &b) const {
+
+ return (( a.get_code () < b.get_code ()) ||
+ (( a.get_code () == b.get_code () &&
+@@ -120,7 +120,7 @@ class Nauty;
+
+
+ struct myclass {
+- inline bool operator() (register const Node &a, register const Node &b) {
++ inline bool operator() (register const Node &a, register const Node &b) const {
+ return (a.get_index() < b.get_index() );
+ }
+ };
+
+--- a/src/cut/sdpcuts/CouenneMatrix.hpp
++++ b/src/cut/sdpcuts/CouenneMatrix.hpp
+@@ -69,7 +69,7 @@ namespace Couenne {
+
+ struct compare_scalars {
+ inline bool operator() (register CouenneScalar * const &a,
+- register CouenneScalar * const &b)
++ register CouenneScalar * const &b) const
+ {return a -> getIndex () < b -> getIndex ();}
+ };
+
+--
+2.32.0
+