Skip to content
Snippets Groups Projects

Fix a "maybe-uninitialized" compiler warning

!2131 (merged) added a R_CheckSpriteVisible function, where I get a warning: 'yscale' may be used uninitialized [-Wmaybe-uninitialized] warning when compiling SRB2. This merge request initialises it to zero to avoid that. (Technically, the warning only occurred with yscale, not texturemid or height (for some reason?), but I decided to zero-initialise all three variables for consistency.)

-

TL;DR: Fixed a compiler warning

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
Please register or sign in to reply
Loading