Skip to content

Build: clean up warnings across emulator cores#34

Open
mariovirgili wants to merge 1 commit into
geo-tp:xip_loadfrom
mariovirgili:xip_load_geo_suppress_warnings
Open

Build: clean up warnings across emulator cores#34
mariovirgili wants to merge 1 commit into
geo-tp:xip_loadfrom
mariovirgili:xip_load_geo_suppress_warnings

Conversation

@mariovirgili
Copy link
Copy Markdown

This PR cleans up build warnings across multiple emulator cores while keeping the resulting firmware build successful.

The main changes are:

Moves -fno-rtti out of the global build_flags and applies it only to C++ compilation via scripts/warning_flags.py. This keeps the flash-saving RTTI removal for C++ code, while avoiding invalid -fno-rtti warnings on C files where the flag has no effect.

Adds targeted warning flags for C/C++ where appropriate, without broadly hiding unrelated compiler output.

Fixes missing or ambiguous declarations in several cores, including MSX, PCE, WS/WSC, VFS, and SNES.

Cleans up macro redefinition warnings in Genesis, GBC, SMS, and GX4000 code.

Fixes const-correctness and function pointer table typing issues in NGP and other legacy C code.

Adjusts SNES APU stub declarations so disabled-sound builds still expose the expected prototypes.

Replaces a fragile strncat() usage in shared save-path generation with bounded memcpy() plus explicit termination.

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.

1 participant