Skip to content

Fix int/pointer conversion errors that break GCC 14+ builds - #81

Merged
BrianPugh merged 1 commit into
mainfrom
fix-int-conversion-gcc14
Aug 6, 2026
Merged

Fix int/pointer conversion errors that break GCC 14+ builds#81
BrianPugh merged 1 commit into
mainfrom
fix-int-conversion-gcc14

Conversation

@BrianPugh

Copy link
Copy Markdown
Owner

BANK_2_ADDRESS / SD_BOOTLOADER_ADDRESS are plain int literals; 974c49b assigned them to a uint32_t * and passed that pointer back into set_bootloader(uint32_t). GCC <=13 warned, GCC 14+ errors (-Wint-conversion is an error by default). Added the casts — no behavior change.

Verified with Arm GNU Toolchain 15.2.Rel1: full mario and zelda builds pass, and main.c compiles clean under SD_BOOTLOADER / TRIPLE_BOOT / CLOCK_ONLY / ENABLE_SMB1_GRAPHIC_MODS.

Fixes #80

🤖 Generated with Claude Code

BANK_2_ADDRESS and SD_BOOTLOADER_ADDRESS are plain integer literals, but
974c49b assigned them to a uint32_t* and passed that pointer back into
set_bootloader(uint32_t). GCC <=13 only warned; GCC 14+ makes
-Wint-conversion an error by default, breaking the build on current
toolchains.

Fixes #80

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@BrianPugh
BrianPugh merged commit c16d7c7 into main Aug 6, 2026
1 check passed
@BrianPugh
BrianPugh deleted the fix-int-conversion-gcc14 branch August 6, 2026 12:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Unable to compile when using the flash command

1 participant