mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-24 23:11:14 +01:00
Fix -Wignored-qualifiers warnings
This commit is contained in:
parent
e54880e9f3
commit
1993eb436c
@ -131,7 +131,7 @@ Classic::Classic(ExtensionReg& reg) : Attachment(_trans("Classic"), reg)
|
|||||||
|
|
||||||
void Classic::GetState(u8* const data)
|
void Classic::GetState(u8* const data)
|
||||||
{
|
{
|
||||||
wm_classic_extension* const ccdata = reinterpret_cast<wm_classic_extension* const>(data);
|
wm_classic_extension* const ccdata = reinterpret_cast<wm_classic_extension*>(data);
|
||||||
ccdata->bt.hex = 0;
|
ccdata->bt.hex = 0;
|
||||||
|
|
||||||
// not using calibration data, o well
|
// not using calibration data, o well
|
||||||
|
@ -67,7 +67,7 @@ Drums::Drums(ExtensionReg& reg) : Attachment(_trans("Drums"), reg)
|
|||||||
|
|
||||||
void Drums::GetState(u8* const data)
|
void Drums::GetState(u8* const data)
|
||||||
{
|
{
|
||||||
wm_drums_extension* const ddata = reinterpret_cast<wm_drums_extension* const>(data);
|
wm_drums_extension* const ddata = reinterpret_cast<wm_drums_extension*>(data);
|
||||||
ddata->bt = 0;
|
ddata->bt = 0;
|
||||||
|
|
||||||
// calibration data not figured out yet?
|
// calibration data not figured out yet?
|
||||||
|
@ -100,7 +100,7 @@ Guitar::Guitar(ExtensionReg& reg) : Attachment(_trans("Guitar"), reg)
|
|||||||
|
|
||||||
void Guitar::GetState(u8* const data)
|
void Guitar::GetState(u8* const data)
|
||||||
{
|
{
|
||||||
wm_guitar_extension* const gdata = reinterpret_cast<wm_guitar_extension* const>(data);
|
wm_guitar_extension* const gdata = reinterpret_cast<wm_guitar_extension*>(data);
|
||||||
gdata->bt = 0;
|
gdata->bt = 0;
|
||||||
|
|
||||||
// calibration data not figured out yet?
|
// calibration data not figured out yet?
|
||||||
|
@ -59,7 +59,7 @@ Nunchuk::Nunchuk(ExtensionReg& reg) : Attachment(_trans("Nunchuk"), reg)
|
|||||||
|
|
||||||
void Nunchuk::GetState(u8* const data)
|
void Nunchuk::GetState(u8* const data)
|
||||||
{
|
{
|
||||||
wm_nc* const ncdata = reinterpret_cast<wm_nc* const>(data);
|
wm_nc* const ncdata = reinterpret_cast<wm_nc*>(data);
|
||||||
ncdata->bt.hex = 0;
|
ncdata->bt.hex = 0;
|
||||||
|
|
||||||
// stick
|
// stick
|
||||||
|
@ -141,7 +141,7 @@ void Wiimote::ControlChannel(const u16 channel, const void* const data, const u3
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
InterruptChannel(channel, data, size);
|
InterruptChannel(channel, data, size);
|
||||||
const hid_packet* const hidp = reinterpret_cast<const hid_packet* const>(data);
|
const hid_packet* const hidp = reinterpret_cast<const hid_packet*>(data);
|
||||||
if (hidp->type == HID_TYPE_SET_REPORT)
|
if (hidp->type == HID_TYPE_SET_REPORT)
|
||||||
{
|
{
|
||||||
u8 handshake_ok = HID_HANDSHAKE_SUCCESS;
|
u8 handshake_ok = HID_HANDSHAKE_SUCCESS;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user