mirror of
https://github.com/melonDS-emu/melonDS.git
synced 2025-07-24 22:59:58 -06:00
Resolve or silence some warnings (#1905)
* Resolve some warnings - Their frequent appearance in the build logs is driving me nuts * Silence warnings about `offsetof` * Don't apply `-Wno-invalid-offset` to C, only to C++
This commit is contained in:
@ -178,7 +178,7 @@ private:
|
||||
{
|
||||
// Z-buffering: linear interpolation
|
||||
// still doesn't quite match hardware...
|
||||
s32 base, disp, factor;
|
||||
s32 base = 0, disp = 0, factor = 0;
|
||||
|
||||
if (z0 < z1)
|
||||
{
|
||||
@ -337,7 +337,7 @@ private:
|
||||
|
||||
constexpr s32 XVal() const
|
||||
{
|
||||
s32 ret;
|
||||
s32 ret = 0;
|
||||
if (Negative) ret = x0 - (dx >> 18);
|
||||
else ret = x0 + (dx >> 18);
|
||||
|
||||
|
Reference in New Issue
Block a user