From 9681df98e4d62ba7f5385e11f747573408cbe55d Mon Sep 17 00:00:00 2001 From: Duncaen Date: Sat, 8 Oct 2022 17:28:18 +0200 Subject: [PATCH] codeblocks: fix build with gcc>=11 --- srcpkgs/codeblocks/patches/codeblocks-gcc11.patch | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 srcpkgs/codeblocks/patches/codeblocks-gcc11.patch diff --git a/srcpkgs/codeblocks/patches/codeblocks-gcc11.patch b/srcpkgs/codeblocks/patches/codeblocks-gcc11.patch new file mode 100644 index 00000000000..760a8e1ec3a --- /dev/null +++ b/srcpkgs/codeblocks/patches/codeblocks-gcc11.patch @@ -0,0 +1,13 @@ +diff --git a/src/plugins/openfileslist/openfileslistplugin.h b/src/plugins/openfileslist/openfileslistplugin.h +index 7fd7a95..87b08ee 100644 +--- a/src/plugins/openfileslist/openfileslistplugin.h ++++ b/src/plugins/openfileslist/openfileslistplugin.h +@@ -23,7 +23,7 @@ struct TargetFilesData + // Functor for the std::set predicate to sort the opened editor files according to their tab order + struct compareLess + { +- bool operator()(const ProjectFile* lhs, const ProjectFile* rhs) { return lhs->editorTabPos < rhs->editorTabPos; } ++ bool operator()(const ProjectFile* lhs, const ProjectFile* rhs) const { return lhs->editorTabPos < rhs->editorTabPos; } + }; + typedef std::set OpenFilesSet; + ProjectFile* activeFile;