blob: 5abe59279f63b884cb358ae5074be21858512285 [file] [log] [blame]
Andrew Geisslerc5535c92023-01-27 16:10:19 -06001From aa505359a3bb5a954fe3c7fbd853c75802bf3533 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Mon, 16 Jan 2023 21:37:26 -0800
4Subject: [PATCH] greenlet: Drop using 'register' storage class keyword
5
6This has been dropped in c++17 and newer
7
8Upstream-Status: Submitted [https://github.com/python-greenlet/greenlet/pull/336]
9Signed-off-by: Khem Raj <raj.khem@gmail.com>
10---
11 src/greenlet/platform/switch_riscv_unix.h | 4 ++--
12 1 file changed, 2 insertions(+), 2 deletions(-)
13
14diff --git a/src/greenlet/platform/switch_riscv_unix.h b/src/greenlet/platform/switch_riscv_unix.h
15index 5b5ea98..24df9db 100644
16--- a/src/greenlet/platform/switch_riscv_unix.h
17+++ b/src/greenlet/platform/switch_riscv_unix.h
18@@ -11,8 +11,8 @@
19 static int
20 slp_switch(void)
21 {
22- register int ret;
23- register long *stackref, stsizediff;
24+ int ret;
25+ long *stackref, stsizediff;
26 __asm__ volatile ("" : : : REGS_TO_SAVE);
27 __asm__ volatile ("mv %0, sp" : "=r" (stackref) : );
28 {
29--
302.39.0
31