summaryrefslogtreecommitdiff
path: root/Source/Core/InputCommon/ControllerEmu/ControlGroup/IMUAccelerometer.cpp
diff options
context:
space:
mode:
authorLéo Lam <leo@leolam.fr>2021-02-10 01:56:14 +0100
committerLéo Lam <leo@leolam.fr>2021-02-10 02:03:16 +0100
commit118b2a3580972972c42a492347287fc292add50b (patch)
tree84271da597ec0ffa53ebca4cfba2f3b7ffef617a /Source/Core/InputCommon/ControllerEmu/ControlGroup/IMUAccelerometer.cpp
parentabc5d6c0d274345d33ad41f685bfc5fbc3bc5b71 (diff)
Core/DSP: Fix improper uses of offsetof
According to the C standard, an offsetof expression must evaluate to an address constant, otherwise it's undefined behavior. Fixes https://bugs.dolphin-emu.org/issues/12409 See also https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95942 There are still improper uses of offsetof (mostly in JitArm64) but fixing that will take more effort since there's a PPCSTATE_OFF wrapper macro that is sometimes used with non-array members and sometimes used with arrays and variable indices... Let's keep that for another PR.
Diffstat (limited to 'Source/Core/InputCommon/ControllerEmu/ControlGroup/IMUAccelerometer.cpp')
0 files changed, 0 insertions, 0 deletions