Skip to content

Mark all unused variables as unused, resolve other warnings#1147

Open
EmeraldLoc wants to merge 2 commits intocoop-deluxe:devfrom
EmeraldLoc:fix-unused-and-other-errors
Open

Mark all unused variables as unused, resolve other warnings#1147
EmeraldLoc wants to merge 2 commits intocoop-deluxe:devfrom
EmeraldLoc:fix-unused-and-other-errors

Conversation

@EmeraldLoc
Copy link
Contributor

Was getting annoyed at the obnoxious amount of "Warning: Unused variable" garbage I would get during compilation. So I marked them all as unused. For the most part these changes should be fine, but I did end up altering an sprintf in stb_image_write.h, as it was marked as unsafe by the compiler. It was an easy fix, but because it's a lib like that, I thought I'd mention it. (Also, I don't think I'm actually meant to be getting unused variable warnings lol, but on macOS the flag isn't being set ¯_(ツ)_/¯, well, at least it let me do this).

@AgentXLP
Copy link
Contributor

If I were you I would just deleted the unused variables and other data but this is probably a better approach than nuking all of it

@EmeraldLoc
Copy link
Contributor Author

I don't mind doing so, I was cautious on deleting anything that seemed like it could ever come back to life, but I could probably do another pass and delete more.

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