diff options
author | Khem Raj <raj.khem@gmail.com> | 2019-07-27 13:05:04 -0700 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2019-07-28 17:11:17 -0700 |
commit | 3270d14d587e9484051afe8d23068e21d7d30fcd (patch) | |
tree | 2a375d77aed37512e07a4690f24dcf338d12e540 | |
parent | 087b917aaf538510db166bee036734ab463bb279 (diff) | |
download | meta-openembedded-3270d14d587e9484051afe8d23068e21d7d30fcd.tar.gz |
pegtl: Fix build with clang/libc++
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Cc: Ayoub Zaki <ayoub.zaki@embexus.com>
-rw-r--r-- | meta-oe/recipes-extended/pegtl/pegtl/0001-Fix-clang-warning-about-non-virtual-dtor.patch | 25 | ||||
-rw-r--r-- | meta-oe/recipes-extended/pegtl/pegtl_2.1.4.bb | 4 |
2 files changed, 28 insertions, 1 deletions
diff --git a/meta-oe/recipes-extended/pegtl/pegtl/0001-Fix-clang-warning-about-non-virtual-dtor.patch b/meta-oe/recipes-extended/pegtl/pegtl/0001-Fix-clang-warning-about-non-virtual-dtor.patch new file mode 100644 index 0000000000..0c79c4c094 --- /dev/null +++ b/meta-oe/recipes-extended/pegtl/pegtl/0001-Fix-clang-warning-about-non-virtual-dtor.patch | |||
@@ -0,0 +1,25 @@ | |||
1 | From 340110292b35d367205953a59e7eab28e1f4a0bb Mon Sep 17 00:00:00 2001 | ||
2 | From: Daniel Frey <d.frey@gmx.de> | ||
3 | Date: Sat, 7 Apr 2018 09:13:51 +0200 | ||
4 | Subject: [PATCH] Fix clang-warning about non-virtual dtor | ||
5 | |||
6 | Upstream-Status: Backport [https://github.com/taocpp/PEGTL/commit/340110292b35d367205953a59e7eab28e1f4a0bb] | ||
7 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
8 | --- | ||
9 | src/example/pegtl/json_classes.hpp | 2 +- | ||
10 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
11 | |||
12 | --- a/src/example/pegtl/json_classes.hpp | ||
13 | +++ b/src/example/pegtl/json_classes.hpp | ||
14 | @@ -34,10 +34,7 @@ namespace examples | ||
15 | : type( in_type ) | ||
16 | { | ||
17 | } | ||
18 | - | ||
19 | - ~json_base() | ||
20 | - { | ||
21 | - } | ||
22 | + virtual ~json_base() = default; | ||
23 | }; | ||
24 | |||
25 | inline std::ostream& operator<<( std::ostream& o, const json_base& j ) | ||
diff --git a/meta-oe/recipes-extended/pegtl/pegtl_2.1.4.bb b/meta-oe/recipes-extended/pegtl/pegtl_2.1.4.bb index f41eef2a01..344a805245 100644 --- a/meta-oe/recipes-extended/pegtl/pegtl_2.1.4.bb +++ b/meta-oe/recipes-extended/pegtl/pegtl_2.1.4.bb | |||
@@ -4,7 +4,9 @@ LICENSE="MIT" | |||
4 | LIC_FILES_CHKSUM = "file://LICENSE;md5=80cb066ab204c7fe022f1cfe0c2c6818" | 4 | LIC_FILES_CHKSUM = "file://LICENSE;md5=80cb066ab204c7fe022f1cfe0c2c6818" |
5 | 5 | ||
6 | SRCREV = "776fa4a1e8bda860008524f6dd9473967c8375b1" | 6 | SRCREV = "776fa4a1e8bda860008524f6dd9473967c8375b1" |
7 | SRC_URI = "git://git@github.com/taocpp/PEGTL.git;protocol=https;branch=master" | 7 | SRC_URI = "git://git@github.com/taocpp/PEGTL.git;protocol=https;branch=master \ |
8 | file://0001-Fix-clang-warning-about-non-virtual-dtor.patch \ | ||
9 | " | ||
8 | 10 | ||
9 | inherit cmake | 11 | inherit cmake |
10 | 12 | ||