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

Reduced Warning Count By 130 For Full Rebuilds #26518

Merged

Conversation

Huxellberger
Copy link
Contributor

About the PR

Non functional code changes to reduce overall warning counts, specifically across the more commonly compiled game build paths.

Why / Balance

At the moment we have well over a thousand warnings for full rebuilds, and in the hundreds for most other incremental ones. This makes them pretty much noise and useless. Reducing the warning count is generally well correlated with fixing problematic chunks of code, as well as making them useful again!

Technical details

The warnings I tackled in this PR are specifically unused variables, dead code paths and the deprecated entity coordinate extension functions. These are all fixable without any structural changes so were the easiest first warnings to remove. You should see the changes are for the most part removing dead code. The other modifications are calling the coordinate extension functions with entity instead of component (as well as maybe two cases of bad variable names). Let know if there's any concerns!

Media

Screenshot_2024-03-27_13-35-44

Screenshot_2024-03-28_01-55-08

  • [X ] I have added screenshots/videos to this PR showcasing its changes ingame, or this PR does not require an ingame showcase

Breaking changes

Changelog

🆑 Jake Huxell

  • fix: Reduced game build warning count.

@github-actions github-actions bot added Changes: UI Changes: Might require knowledge of UI design or code. S: Needs Review Status: Requires additional reviews before being fully accepted labels Mar 28, 2024
@FairlySadPanda
Copy link
Contributor

I'm commander panda and this is my favourite pr in the codebase

Content.IntegrationTests/Tests/Fluids/PuddleTest.cs Outdated Show resolved Hide resolved
Content.IntegrationTests/Tests/PrototypeSaveTest.cs Outdated Show resolved Hide resolved
Content.IntegrationTests/Tests/PrototypeSaveTest.cs Outdated Show resolved Hide resolved
Comment on lines -51 to -57
/// <summary>
/// While processing an explosion, the "progress" is sent to clients, so that the explosion fireball effect
/// syncs up with the damage. When the tile iteration increments, an update needs to be sent to clients.
/// This integer keeps track of the last value sent to clients.
/// </summary>
private int _previousTileIteration;

Copy link
Member

Choose a reason for hiding this comment

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

@ElectroJr Any comments on this?

@ShadowCommander
Copy link
Member

If you've finished a review comment, you can click the Resolve conversation button to mark it as complete.

@metalgearsloth metalgearsloth merged commit 59e46aa into space-wizards:master Mar 29, 2024
12 checks passed
DEATHB4DEFEAT added a commit to Simple-Station/Einstein-Engines that referenced this pull request Jul 12, 2024
Uses the following Cherry-Picks:
space-wizards/space-station-14#26994
space-wizards/space-station-14#26518
space-wizards/space-station-14#26279
space-wizards/space-station-14#24946
space-wizards/space-station-14#27188

Requires:
#535
#534

---------

Co-authored-by: metalgearsloth <[email protected]>
Co-authored-by: Leon Friedrich <[email protected]>
Co-authored-by: Jake Huxell <[email protected]>
Co-authored-by: Tayrtahn <[email protected]>
Co-authored-by: 0x6273 <[email protected]>
Co-authored-by: DEATHB4DEFEAT <[email protected]>
Vaaankas pushed a commit to machination-of-ruin/errorgate that referenced this pull request Sep 3, 2024
Uses the following Cherry-Picks:
space-wizards/space-station-14#26994
space-wizards/space-station-14#26518
space-wizards/space-station-14#26279
space-wizards/space-station-14#24946
space-wizards/space-station-14#27188

Requires:
Simple-Station/Einstein-Engines#535
Simple-Station/Einstein-Engines#534

---------

Co-authored-by: metalgearsloth <[email protected]>
Co-authored-by: Leon Friedrich <[email protected]>
Co-authored-by: Jake Huxell <[email protected]>
Co-authored-by: Tayrtahn <[email protected]>
Co-authored-by: 0x6273 <[email protected]>
Co-authored-by: DEATHB4DEFEAT <[email protected]>

(cherry picked from commit 30fa120)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Changes: UI Changes: Might require knowledge of UI design or code. S: Needs Review Status: Requires additional reviews before being fully accepted
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants