Skip to content

Commit c9c3825

Browse files
authored
remove assembler warning if StackSize or HeapSize are explicitly set to zero (#2465)
1 parent 3515dad commit c9c3825

File tree

1 file changed

+4
-0
lines changed
  • src/rp2_common/pico_crt0

1 file changed

+4
-0
lines changed

src/rp2_common/pico_crt0/crt0.S

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -573,11 +573,15 @@ spacer_section .stack
573573
// align to allow for memory protection (although this alignment is pretty much ignored by linker script)
574574
.p2align 5
575575
.equ StackSize, PICO_STACK_SIZE
576+
.if StackSize != 0
576577
.space StackSize
578+
.endif
577579

578580
spacer_section .heap
579581
.p2align 2
580582
.equ HeapSize, PICO_HEAP_SIZE
583+
.if HeapSize != 0
581584
.space HeapSize
585+
.endif
582586

583587
#include "embedded_end_block.inc.S"

0 commit comments

Comments
 (0)