remove assembler warning if StackSize or HeapSize are explicitly set to zero (#2465)

This commit is contained in:
Graham Sanderson 2025-05-21 06:57:09 -05:00 committed by GitHub
parent 3515dad632
commit c9c38252ec
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -573,11 +573,15 @@ spacer_section .stack
// align to allow for memory protection (although this alignment is pretty much ignored by linker script)
.p2align 5
.equ StackSize, PICO_STACK_SIZE
.if StackSize != 0
.space StackSize
.endif
spacer_section .heap
.p2align 2
.equ HeapSize, PICO_HEAP_SIZE
.if HeapSize != 0
.space HeapSize
.endif
#include "embedded_end_block.inc.S"