33 lines
847 B
Diff
33 lines
847 B
Diff
From f98181e5d46122052bd6096769d219f14163f13b Mon Sep 17 00:00:00 2001
|
|
From: c0repwn3r <core@coredoes.dev>
|
|
Date: Wed, 24 May 2023 13:26:34 -0400
|
|
Subject: [PATCH] fix builds on gcc13
|
|
|
|
---
|
|
py/stackctrl.c | 7 +++++++
|
|
1 file changed, 7 insertions(+)
|
|
|
|
diff --git a/py/stackctrl.c b/py/stackctrl.c
|
|
index c2f3adb5eedcd77a64dd22835e6f859a333d9d4b..c2566ebad92b84e0421cc77dd65f6c5fa2e04561 100644
|
|
--- a/py/stackctrl.c
|
|
+++ b/py/stackctrl.c
|
|
@@ -28,8 +28,15 @@
|
|
#include "py/stackctrl.h"
|
|
|
|
void mp_stack_ctrl_init(void) {
|
|
+ #if __GNUC__ >= 13
|
|
+ #pragma GCC diagnostic push
|
|
+ #pragma GCC diagnostic ignored "-Wdangling-pointer"
|
|
+ #endif
|
|
volatile int stack_dummy;
|
|
MP_STATE_THREAD(stack_top) = (char *)&stack_dummy;
|
|
+ #if __GNUC__ >= 13
|
|
+ #pragma GCC diagnostic pop
|
|
+ #endif
|
|
}
|
|
|
|
void mp_stack_set_top(void *top) {
|
|
--
|
|
2.40.1
|
|
|