diff options
| author | Khem Raj <raj.khem@gmail.com> | 2021-02-26 23:41:29 -0800 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-03-18 21:20:25 +0000 |
| commit | ad35a4bcb531696d32726f21703ec0c7cdaf5e76 (patch) | |
| tree | 09a52b3e43ce5bfe64f41bf8746229f3cd096a13 | |
| parent | 44bceb80b26621234a8d116294576dd5aa0a676f (diff) | |
| download | poky-ad35a4bcb531696d32726f21703ec0c7cdaf5e76.tar.gz | |
rxvt-unicode: Do not use throw specifications
Fixes build with -std=c++17
| ../../rxvt-unicode-9.22/src/../libev/ev++.h:379:46: error: ISO C++17 does not allow dynamic exception specifications
| 379 | default_loop (unsigned int flags = AUTO) throw (bad_loop)
| | ^~~~~
(From OE-Core rev: 5cdb675b4219e33eb9f8a5b3be1a6c9efe2099fc)
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit f437b226aac498240bc1e3a02eb0257a7deeedea)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
| -rw-r--r-- | meta/recipes-sato/rxvt-unicode/rxvt-unicode/0001-libev-remove-deprecated-throw-specification.patch | 30 | ||||
| -rw-r--r-- | meta/recipes-sato/rxvt-unicode/rxvt-unicode_9.22.bb | 4 |
2 files changed, 33 insertions, 1 deletions
diff --git a/meta/recipes-sato/rxvt-unicode/rxvt-unicode/0001-libev-remove-deprecated-throw-specification.patch b/meta/recipes-sato/rxvt-unicode/rxvt-unicode/0001-libev-remove-deprecated-throw-specification.patch new file mode 100644 index 0000000000..f10dca09d6 --- /dev/null +++ b/meta/recipes-sato/rxvt-unicode/rxvt-unicode/0001-libev-remove-deprecated-throw-specification.patch | |||
| @@ -0,0 +1,30 @@ | |||
| 1 | From 9a8f1d73e7b7e183768a8379ef32429a84f0e5c2 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Khem Raj <raj.khem@gmail.com> | ||
| 3 | Date: Fri, 26 Feb 2021 18:11:56 -0800 | ||
| 4 | Subject: [PATCH] libev: remove deprecated throw specification | ||
| 5 | |||
| 6 | removes the throw specifications that are deprecated since C++11: | ||
| 7 | warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] | ||
| 8 | |||
| 9 | Upstream-Status: Pending | ||
| 10 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
| 11 | --- | ||
| 12 | libev/ev++.h | 2 +- | ||
| 13 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
| 14 | |||
| 15 | diff --git a/libev/ev++.h b/libev/ev++.h | ||
| 16 | index 4f0a36a..85ddf44 100644 | ||
| 17 | --- a/libev/ev++.h | ||
| 18 | +++ b/libev/ev++.h | ||
| 19 | @@ -376,7 +376,7 @@ namespace ev { | ||
| 20 | |||
| 21 | struct default_loop : loop_ref | ||
| 22 | { | ||
| 23 | - default_loop (unsigned int flags = AUTO) throw (bad_loop) | ||
| 24 | + default_loop (unsigned int flags = AUTO) | ||
| 25 | #if EV_MULTIPLICITY | ||
| 26 | : loop_ref (ev_default_loop (flags)) | ||
| 27 | #endif | ||
| 28 | -- | ||
| 29 | 2.30.1 | ||
| 30 | |||
diff --git a/meta/recipes-sato/rxvt-unicode/rxvt-unicode_9.22.bb b/meta/recipes-sato/rxvt-unicode/rxvt-unicode_9.22.bb index bfa8a614df..283e8d7751 100644 --- a/meta/recipes-sato/rxvt-unicode/rxvt-unicode_9.22.bb +++ b/meta/recipes-sato/rxvt-unicode/rxvt-unicode_9.22.bb | |||
| @@ -4,5 +4,7 @@ LICENSE = "GPLv3" | |||
| 4 | LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504 \ | 4 | LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504 \ |
| 5 | file://src/main.C;beginline=1;endline=31;md5=d3600d7ee1062667fcd1193fbe6485f6" | 5 | file://src/main.C;beginline=1;endline=31;md5=d3600d7ee1062667fcd1193fbe6485f6" |
| 6 | 6 | ||
| 7 | SRC_URI[md5sum] = "93782dec27494eb079467dacf6e48185" | 7 | SRC_URI += "file://0001-libev-remove-deprecated-throw-specification.patch" |
| 8 | |||
| 8 | SRC_URI[sha256sum] = "e94628e9bcfa0adb1115d83649f898d6edb4baced44f5d5b769c2eeb8b95addd" | 9 | SRC_URI[sha256sum] = "e94628e9bcfa0adb1115d83649f898d6edb4baced44f5d5b769c2eeb8b95addd" |
| 10 | |||
