aboutsummaryrefslogtreecommitdiffstats
path: root/meta-amd-bsp/recipes-support/boost/boost/0001-boost-libs-python-converter-fix-build-with-gcc8.patch
blob: c2530ec413c6ae57029ee574a28fef6b9cffe07e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
From 3ff8d2aedcd072392692a3b21bf51ed5806b8f44 Mon Sep 17 00:00:00 2001
From: "Arsalan H. Awan" <Arsalan_Awan@mentor.com>
Date: Fri, 30 Aug 2019 15:11:04 +0500
Subject: [PATCH] boost/libs/python/converter: fix build with gcc8

Fixes the following in converter/builtin_converters.cpp:51:35:
error: invalid conversion from 'const void*' to 'void*' [-fpermissive]

Signed-off-by: Arsalan H. Awan <Arsalan_Awan@mentor.com>
---
 libs/python/src/converter/builtin_converters.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libs/python/src/converter/builtin_converters.cpp b/libs/python/src/converter/builtin_converters.cpp
index 9900602..d67d721 100644
--- a/libs/python/src/converter/builtin_converters.cpp
+++ b/libs/python/src/converter/builtin_converters.cpp
@@ -48,7 +48,7 @@ namespace
 #else
   void* convert_to_cstring(PyObject* obj)
   {
-      return PyUnicode_Check(obj) ? _PyUnicode_AsString(obj) : 0;
+      return (void*)(PyUnicode_Check(obj) ? _PyUnicode_AsString(obj) : 0);
   }
 #endif
 
-- 
2.11.1