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 warnings introduced by gcc 13 #3428

Merged
merged 1 commit into from
Oct 16, 2023

Conversation

SBird1337
Copy link
Collaborator

@SBird1337 SBird1337 commented Oct 15, 2023

Fixes warnings introduced somewhere between gcc 10 and gcc 13 when compiling with -Wall. Those warnings are

  • -Warray-bounds
  • -Waddress
  • -Warray-parameter

Description

Ideally the skydrop stuff should be refactored to be a little more standalone I assume. However since with the current changes to upcoming the projects will stop to build on modern compilers that change the behavior of -Wall and -Warray-bounds it is probably a good idea to immediately remove the negative array subscript (which was broken due to the CMD_ARGS PR anyways)

PR to upcoming because it fixes an upcoming issue. The visual oddity technically exists in master, but I think it is fine for the next release version and does not require a hotfix. (Also this is not fixing the sprite invisibility issue)

Issue(s) that this PR fixes

No issue was assigned to this.

Discord contact info

karathan

@SBird1337 SBird1337 changed the title fix skydrop confusion and oob warning fix warnings introduced by gcc 13 Oct 15, 2023
those are introduced by some compiler between gcc 10 and gcc 13
when using -Wall
Copy link
Collaborator

@mrgriffin mrgriffin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me :)

@mrgriffin mrgriffin merged commit b77bc71 into rh-hideout:upcoming Oct 16, 2023
1 check passed
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.

2 participants