Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Wall Werrors on modern #3412

Merged
merged 14 commits into from
Oct 13, 2023
Merged

Conversation

DizzyEggg
Copy link
Collaborator

Replaces #3267

With Edu's PR merged to PRET this was fairly straightforward, it's more or less the same as the previous PR.
The only major change I did, compared to before, is that I kept the -Wno-strict-aliasing flag to not have to do weird memcpy shenanigans.

Tests and hgss dex should be working too.

src/battle_ai_util.c Outdated Show resolved Hide resolved
src/battle_anim_new.c Outdated Show resolved Hide resolved
src/battle_script_commands.c Outdated Show resolved Hide resolved
src/debug.c Outdated Show resolved Hide resolved
src/debug.c Outdated Show resolved Hide resolved
src/pokemon.c Outdated Show resolved Hide resolved
src/script_menu.c Show resolved Hide resolved
src/start_menu.c Outdated Show resolved Hide resolved
src/tv.c Outdated Show resolved Hide resolved
test/test_runner_battle.c Outdated Show resolved Hide resolved
@SBird1337
Copy link
Collaborator

When doing things like

StoreWordInTwoHalfwords((u16*) &task->tExitCallback, (intptr_t)exitCallback);

I think this is still technically UB 🤔

DizzyEggg and others added 5 commits October 13, 2023 14:45
Co-authored-by: Philipp AUER <[email protected]>
Co-authored-by: Philipp AUER <[email protected]>
Co-authored-by: Philipp AUER <[email protected]>
Co-authored-by: Philipp AUER <[email protected]>
@DizzyEggg
Copy link
Collaborator Author

When doing things like

StoreWordInTwoHalfwords((u16*) &task->tExitCallback, (intptr_t)exitCallback);

I think this is still technically UB 🤔

I ain't gonna fix GF's code xD

@SBird1337 SBird1337 merged commit a7b9d13 into rh-hideout:upcoming Oct 13, 2023
1 check passed
@DizzyEggg DizzyEggg deleted the werror_modern branch December 29, 2023 14:48
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.

3 participants