Merge pull request #6908 from Tilka/warnings
Fix -Wignored-qualifiers warnings
This commit is contained in:
commit
c6bd237534
|
@ -131,7 +131,7 @@ Classic::Classic(ExtensionReg& reg) : Attachment(_trans("Classic"), reg)
|
|||
|
||||
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;
|
||||
|
||||
// not using calibration data, o well
|
||||
|
|
|
@ -67,7 +67,7 @@ Drums::Drums(ExtensionReg& reg) : Attachment(_trans("Drums"), reg)
|
|||
|
||||
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;
|
||||
|
||||
// calibration data not figured out yet?
|
||||
|
|
|
@ -100,7 +100,7 @@ Guitar::Guitar(ExtensionReg& reg) : Attachment(_trans("Guitar"), reg)
|
|||
|
||||
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;
|
||||
|
||||
// calibration data not figured out yet?
|
||||
|
|
|
@ -59,7 +59,7 @@ Nunchuk::Nunchuk(ExtensionReg& reg) : Attachment(_trans("Nunchuk"), reg)
|
|||
|
||||
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;
|
||||
|
||||
// stick
|
||||
|
|
|
@ -141,7 +141,7 @@ void Wiimote::ControlChannel(const u16 channel, const void* const data, const u3
|
|||
else
|
||||
{
|
||||
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)
|
||||
{
|
||||
u8 handshake_ok = HID_HANDSHAKE_SUCCESS;
|
||||
|
|
Loading…
Reference in New Issue