summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Mair-Keimberger <mmk@levelnine.at>2022-11-16 19:15:24 +0100
committerConrad Kostecki <conikost@gentoo.org>2022-11-16 19:33:16 +0100
commit3207fb0daacf68ad312a92e51bcf49a191327a02 (patch)
treeceac64f2b6c931b16a212aca9f873c3d42653fb2 /app-editors
parentx11-misc/makedepend: Stabilize 1.0.7 ppc64, #880793 (diff)
downloadgentoo-3207fb0daacf68ad312a92e51bcf49a191327a02.tar.gz
gentoo-3207fb0daacf68ad312a92e51bcf49a191327a02.tar.bz2
gentoo-3207fb0daacf68ad312a92e51bcf49a191327a02.zip
app-editors/kakoune: remove unused patch(es)
Signed-off-by: Michael Mair-Keimberger <mmk@levelnine.at> Closes: https://github.com/gentoo/gentoo/pull/28298 Signed-off-by: Conrad Kostecki <conikost@gentoo.org>
Diffstat (limited to 'app-editors')
-rw-r--r--app-editors/kakoune/files/kakoune-2021.11.08-gcc12.patch58
1 files changed, 0 insertions, 58 deletions
diff --git a/app-editors/kakoune/files/kakoune-2021.11.08-gcc12.patch b/app-editors/kakoune/files/kakoune-2021.11.08-gcc12.patch
deleted file mode 100644
index 7f1101cdbf49..000000000000
--- a/app-editors/kakoune/files/kakoune-2021.11.08-gcc12.patch
+++ /dev/null
@@ -1,58 +0,0 @@
-https://bugs.gentoo.org/840647
-https://github.com/mawww/kakoune/issues/4544
-https://github.com/mawww/kakoune/pull/4549
-https://github.com/mawww/kakoune/commit/d1ea2ffa600fd2a7b14e415b68ceedba3325c5db
-
-commit d1ea2ffa600fd2a7b14e415b68ceedba3325c5db
-Author: Tim Allen <screwtape@froup.com>
-Date: Sat Feb 12 21:35:33 2022 +1100
-
- Make Color::validate_alpha() a constexpr function.
-
- We call it from a constexpr constructor, so it needs to be constexpr itself.
-
- Fixes #4544.
-
-diff --git a/src/color.cc b/src/color.cc
-index b355b9cf..dfe2e955 100644
---- a/src/color.cc
-+++ b/src/color.cc
-@@ -34,13 +34,6 @@ bool is_color_name(StringView color)
- return contains(color_names, color);
- }
-
--void Color::validate_alpha()
--{
-- static_assert(RGB == 17);
-- if (a < RGB)
-- throw runtime_error("Colors alpha must be > 16");
--}
--
- Color str_to_color(StringView color)
- {
- auto it = find_if(color_names, [&](const char* c){ return color == c; });
-diff --git a/src/color.hh b/src/color.hh
-index 943678ed..85babd98 100644
---- a/src/color.hh
-+++ b/src/color.hh
-@@ -1,6 +1,7 @@
- #ifndef color_hh_INCLUDED
- #define color_hh_INCLUDED
-
-+#include "exception.hh"
- #include "hash.hh"
- #include "meta.hh"
- #include "assert.hh"
-@@ -55,7 +56,11 @@ struct Color
- }
-
- private:
-- void validate_alpha();
-+ constexpr void validate_alpha() {
-+ static_assert(RGB == 17);
-+ if (a < RGB)
-+ throw runtime_error("Colors alpha must be > 16");
-+ }
- };
-
- constexpr bool operator==(Color lhs, Color rhs)