diff options
author | Khem Raj <raj.khem@gmail.com> | 2018-05-22 22:24:00 -0700 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2018-05-26 21:10:55 -0700 |
commit | 51c6624684a5acfceb2feeb8bd9bfa7f744c1526 (patch) | |
tree | 67f0a364becfcf1d3b09fa5b3d21239d031be419 /meta-oe/recipes-support/cpprest/cpprest-2.10.2/0002-Define-virtual-destructor.patch | |
parent | 8b7834aba887c67bd2d01e94b2e867578e691a3f (diff) | |
download | meta-openembedded-51c6624684a5acfceb2feeb8bd9bfa7f744c1526.tar.gz |
cpprest: Fix build with clang
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-oe/recipes-support/cpprest/cpprest-2.10.2/0002-Define-virtual-destructor.patch')
-rw-r--r-- | meta-oe/recipes-support/cpprest/cpprest-2.10.2/0002-Define-virtual-destructor.patch | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/meta-oe/recipes-support/cpprest/cpprest-2.10.2/0002-Define-virtual-destructor.patch b/meta-oe/recipes-support/cpprest/cpprest-2.10.2/0002-Define-virtual-destructor.patch new file mode 100644 index 0000000000..34cbe66974 --- /dev/null +++ b/meta-oe/recipes-support/cpprest/cpprest-2.10.2/0002-Define-virtual-destructor.patch | |||
@@ -0,0 +1,28 @@ | |||
1 | From 816d183eb0fe9ab4607cb049b4b792f8df84d5fe Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Tue, 22 May 2018 22:17:43 -0700 | ||
4 | Subject: [PATCH] Define virtual destructor | ||
5 | |||
6 | Fixes | ||
7 | error: destructor called on non-final 'pplx::details::linux_scheduler' that has virtual functions but non-virtual destructor [-Werror,-Wdelete-non-virtual-dtor] | ||
8 | __data_.second().~_Tp(); | ||
9 | |||
10 | Upstream-Status: Pending [https://github.com/Microsoft/cpprestsdk/issues/747] | ||
11 | |||
12 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
13 | --- | ||
14 | Release/include/pplx/pplxlinux.h | 1 + | ||
15 | 1 file changed, 1 insertion(+) | ||
16 | |||
17 | diff --git a/Release/include/pplx/pplxlinux.h b/Release/include/pplx/pplxlinux.h | ||
18 | index 6aa1ba35..f3f8d70d 100644 | ||
19 | --- a/Release/include/pplx/pplxlinux.h | ||
20 | +++ b/Release/include/pplx/pplxlinux.h | ||
21 | @@ -240,6 +240,7 @@ namespace platform | ||
22 | { | ||
23 | public: | ||
24 | _PPLXIMP virtual void schedule( TaskProc_t proc, _In_ void* param); | ||
25 | + virtual ~linux_scheduler() {} | ||
26 | }; | ||
27 | |||
28 | } // namespace details | ||