aboutsummaryrefslogtreecommitdiff
path: root/development/cxxtools/gcc11.patch
diff options
context:
space:
mode:
authorMatteo Bernardini <ponce@slackbuilds.org>2022-02-11 13:40:27 +0100
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2022-02-12 00:29:47 +0700
commit0c0b5a8d8fd07d8a6531aa076f53e489ddf8554a (patch)
treec4b04eb138c9342871e65fe15f6abb705350c3f4 /development/cxxtools/gcc11.patch
parent42d36269a456ce7867bb816a4bcc680710c7d146 (diff)
development/cxxtools: Updated for version 3.0.
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'development/cxxtools/gcc11.patch')
-rw-r--r--development/cxxtools/gcc11.patch25
1 files changed, 25 insertions, 0 deletions
diff --git a/development/cxxtools/gcc11.patch b/development/cxxtools/gcc11.patch
new file mode 100644
index 000000000000..c5516232a460
--- /dev/null
+++ b/development/cxxtools/gcc11.patch
@@ -0,0 +1,25 @@
+From b773c01fc13d2ae67abc0839888e383be23562fd Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Tommi=20M=C3=A4kitalo?= <tommi@tntnet.org>
+Date: Sun, 24 Jan 2021 17:20:24 +0100
+Subject: [PATCH] make cxxtools::Char a trivial class by definining the default
+ constructor as default
+
+---
+ include/cxxtools/char.h | 4 +---
+ 1 file changed, 1 insertion(+), 3 deletions(-)
+
+diff --git a/include/cxxtools/char.h b/include/cxxtools/char.h
+index 1e637317..3a4ed62a 100644
+--- a/include/cxxtools/char.h
++++ b/include/cxxtools/char.h
+@@ -68,9 +68,7 @@ namespace cxxtools
+ typedef int32_t value_type;
+
+ //! Constructs a character with a value of 0.
+- Char()
+- : _value(0)
+- {}
++ Char() = default;
+
+ //! Constructs a character using the given value as base for the character value.
+ Char(value_type ch)