From c9c38252ecff4ce7dd658fc8c6553925c9aaa50c Mon Sep 17 00:00:00 2001 From: Graham Sanderson Date: Wed, 21 May 2025 06:57:09 -0500 Subject: [PATCH] remove assembler warning if StackSize or HeapSize are explicitly set to zero (#2465) --- src/rp2_common/pico_crt0/crt0.S | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/rp2_common/pico_crt0/crt0.S b/src/rp2_common/pico_crt0/crt0.S index 502c4fdb..3e6c692d 100644 --- a/src/rp2_common/pico_crt0/crt0.S +++ b/src/rp2_common/pico_crt0/crt0.S @@ -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"