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
Activity
Filter activity
added 132 commits
-
4f6da8dc...ae783f01 - 131 commits from branch
STJr:master
- 1590f2a6 - Merge branch 'master' into fix-sprite-clip-warning
-
4f6da8dc...ae783f01 - 131 commits from branch
mentioned in commit 0309535b
Please register or sign in to reply