Add mccs-gcc11-fix.patch to fix compilation with GCC 11. OBS-URL: https://build.opensuse.org/request/show/907209 OBS-URL: https://build.opensuse.org/package/show/science/mccs?expand=0&rev=3
14 lines
543 B
Diff
14 lines
543 B
Diff
Index: mccs-1.1/libsrcs/cudf.h
|
|
===================================================================
|
|
--- mccs-1.1.orig/libsrcs/cudf.h
|
|
+++ mccs-1.1/libsrcs/cudf.h
|
|
@@ -105,7 +105,7 @@ public:
|
|
// Compares two versioned package (used by ordered set packages likes CUDFVersionedPackageSet)
|
|
class CUDFPackage_comparator {
|
|
public:
|
|
- bool operator()(CUDFVersionedPackage *p1, CUDFVersionedPackage *p2) {
|
|
+ bool operator()(CUDFVersionedPackage *p1, CUDFVersionedPackage *p2) const {
|
|
if (p1->version < p2->version)
|
|
return true;
|
|
else
|