mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-04-20 11:38:34 +00:00
python3-greenlet: Drop using register keyword
Its gone in modern C/C++ since c++17 Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
From aa505359a3bb5a954fe3c7fbd853c75802bf3533 Mon Sep 17 00:00:00 2001
|
||||
From: Khem Raj <raj.khem@gmail.com>
|
||||
Date: Mon, 16 Jan 2023 21:37:26 -0800
|
||||
Subject: [PATCH] greenlet: Drop using 'register' storage class keyword
|
||||
|
||||
This has been dropped in c++17 and newer
|
||||
|
||||
Upstream-Status: Submitted [https://github.com/python-greenlet/greenlet/pull/336]
|
||||
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
||||
---
|
||||
src/greenlet/platform/switch_riscv_unix.h | 4 ++--
|
||||
1 file changed, 2 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/src/greenlet/platform/switch_riscv_unix.h b/src/greenlet/platform/switch_riscv_unix.h
|
||||
index 5b5ea98..24df9db 100644
|
||||
--- a/src/greenlet/platform/switch_riscv_unix.h
|
||||
+++ b/src/greenlet/platform/switch_riscv_unix.h
|
||||
@@ -11,8 +11,8 @@
|
||||
static int
|
||||
slp_switch(void)
|
||||
{
|
||||
- register int ret;
|
||||
- register long *stackref, stsizediff;
|
||||
+ int ret;
|
||||
+ long *stackref, stsizediff;
|
||||
__asm__ volatile ("" : : : REGS_TO_SAVE);
|
||||
__asm__ volatile ("mv %0, sp" : "=r" (stackref) : );
|
||||
{
|
||||
--
|
||||
2.39.0
|
||||
|
||||
@@ -4,6 +4,8 @@ LICENSE = "MIT & PSF-2.0"
|
||||
LIC_FILES_CHKSUM = "file://LICENSE;md5=e95668d68e4329085c7ab3535e6a7aee \
|
||||
file://LICENSE.PSF;md5=c106931d9429eda0492617f037b8f69a"
|
||||
|
||||
SRC_URI += "file://0001-greenlet-Drop-using-register-storage-class-keyword.patch"
|
||||
|
||||
SRC_URI[sha256sum] = "42e602564460da0e8ee67cb6d7236363ee5e131aa15943b6670e44e5c2ed0f67"
|
||||
|
||||
inherit pypi setuptools3
|
||||
|
||||
Reference in New Issue
Block a user