Skip to content

Commit 66215f7

Browse files
committed
gcc is evil, I respond with fake pointer
1 parent c003b88 commit 66215f7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

main.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -425,7 +425,7 @@ STATIC bool run_code_py(safe_mode_t safe_mode, bool *simulate_reset) {
425425
};
426426
#endif
427427

428-
volatile supervisor_allocation *pystack = NULL;
428+
supervisor_allocation *pystack = (supervisor_allocation *)1;
429429
#if MICROPY_ENABLE_PYSTACK
430430
pystack = allocate_pystack();
431431
#endif
@@ -774,7 +774,7 @@ STATIC void __attribute__ ((noinline)) run_boot_py(safe_mode_t safe_mode) {
774774

775775
// Do USB setup even if boot.py is not run.
776776

777-
volatile supervisor_allocation *pystack = NULL;
777+
supervisor_allocation *pystack = (supervisor_allocation *)1;
778778
#if MICROPY_ENABLE_PYSTACK
779779
pystack = allocate_pystack();
780780
#endif
@@ -880,7 +880,7 @@ STATIC int run_repl(void) {
880880
int exit_code = PYEXEC_FORCED_EXIT;
881881
stack_resize();
882882
filesystem_flush();
883-
volatile supervisor_allocation *pystack = NULL;
883+
supervisor_allocation *pystack = (supervisor_allocation *)1;
884884
#if MICROPY_ENABLE_PYSTACK
885885
pystack = allocate_pystack();
886886
#endif

0 commit comments

Comments
 (0)