Fix warnings

master
Adam Honse 3 weeks ago
parent 9f95aa8271
commit 0eea0c9aca

@ -215,7 +215,7 @@ void DetectENESMBusDRAMControllers(std::vector<i2c_smbus_interface*> &busses)
{
address_list_idx++;
if(address_list_idx < ENE_RAM_ADDRESS_COUNT)
if(address_list_idx < (int)ENE_RAM_ADDRESS_COUNT)
{
LOG_DEBUG("[ENE SMBus DRAM] Testing address %02X to see if there is a device there", ene_ram_addresses[address_list_idx]);
@ -227,7 +227,7 @@ void DetectENESMBusDRAMControllers(std::vector<i2c_smbus_interface*> &busses)
}
} while (res >= 0);
if(address_list_idx < ENE_RAM_ADDRESS_COUNT)
if(address_list_idx < (int)ENE_RAM_ADDRESS_COUNT)
{
LOG_DEBUG("[ENE SMBus DRAM] Remapping slot %d to address %02X", slot, ene_ram_addresses[address_list_idx]);

@ -724,13 +724,13 @@ bool MSIMysticLight185Controller::Update
| Windows Mystic Light sends two consecutive reports. |
\*-----------------------------------------------------*/
FeaturePacket_185 new_data;
std::memcpy(&new_data, &data, sizeof(data));
memcpy(&new_data, &data, sizeof(data));
ReadSettings();
data.save_data = save;
hid_send_feature_report(dev, (unsigned char*)&data, sizeof(data));
std::memcpy(&data, &new_data, sizeof(data));
memcpy(&data, &new_data, sizeof(data));
data.save_data = save;
return (hid_send_feature_report(dev, (unsigned char*)&data, sizeof(data)) == sizeof(data));
}

@ -815,11 +815,6 @@ static unsigned int ROCCAT_VULCAN_II_MAX_LAYOUT_KEYS_ANSI[6][24] =
{ 5, 8, 14, NA, NA, NA, 34, NA, NA, NA, 55, 61, 66, 74, NA, NA, 78, 83, 87, NA, 92, NA, 101, NA }
};
static unsigned int ROCCAT_VULCAN_II_MAX_LAYOUT_PALM_REST[1][24] =
{
{ 0, NA, 1, 2, NA, 3, 4, NA, 5, 6, NA, 7, 8, NA, 9, 10, NA, 11, 12, NA, 13, 14, NA, 15 }
};
static std::map<int, layout_info> RoccatVulcanIIMaxLayouts =
{
{

Loading…
Cancel
Save