Fix some build warnings
This commit is contained in:
parent
87ba08602f
commit
ac921f8a29
8 changed files with 13 additions and 18 deletions
|
|
@ -132,7 +132,7 @@ AlienwareController::AlienwareController(hid_device* dev_handle, const hid_devic
|
|||
| It doesn't seem possible to read the controller's |
|
||||
| current state, hence the default value being set here.|
|
||||
\*-----------------------------------------------------*/
|
||||
for(unsigned int zone_idx; zone_idx < zones.size(); zone_idx++)
|
||||
for(unsigned int zone_idx = 0; zone_idx < zones.size(); zone_idx++)
|
||||
{
|
||||
zones[zone_idx].color[0] = 0x000000;
|
||||
zones[zone_idx].color[1] = 0x000000;
|
||||
|
|
|
|||
|
|
@ -199,13 +199,8 @@ void DetectAsusAuraSMBusDRAMControllers(std::vector<i2c_smbus_interface*> &busse
|
|||
|
||||
void DetectAsusAuraSMBusMotherboardControllers(std::vector<i2c_smbus_interface*> &busses)
|
||||
{
|
||||
AuraSMBusController* new_aura;
|
||||
RGBController_AuraSMBus* new_controller;
|
||||
|
||||
for (unsigned int bus = 0; bus < busses.size(); bus++)
|
||||
{
|
||||
int address_list_idx = -1;
|
||||
|
||||
// Add Aura-enabled motherboard controllers
|
||||
IF_MOBO_SMBUS(busses[bus]->pci_vendor, busses[bus]->pci_device)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -81,7 +81,7 @@ void DetectAsusAuraUSBTerminal(hid_device_info* info, const std::string& name)
|
|||
}
|
||||
}
|
||||
|
||||
void DetectAsusAuraUSBAddressable(hid_device_info* info, const std::string& name)
|
||||
void DetectAsusAuraUSBAddressable(hid_device_info* info, const std::string& /*name*/)
|
||||
{
|
||||
hid_device* dev = hid_open_path(info->path);
|
||||
|
||||
|
|
@ -95,7 +95,7 @@ void DetectAsusAuraUSBAddressable(hid_device_info* info, const std::string& name
|
|||
}
|
||||
}
|
||||
|
||||
void DetectAsusAuraUSBMotherboards(hid_device_info* info, const std::string& name)
|
||||
void DetectAsusAuraUSBMotherboards(hid_device_info* info, const std::string& /*name*/)
|
||||
{
|
||||
hid_device* dev = hid_open_path(info->path);
|
||||
if(dev)
|
||||
|
|
|
|||
|
|
@ -356,7 +356,7 @@ void RGBController_QMKOpenRGBRev9::SetupZones()
|
|||
/*---------------------------------------------------------*\
|
||||
| Create LEDs |
|
||||
\*---------------------------------------------------------*/
|
||||
for(int led_idx = 0; led_idx < number_of_leds; led_idx++)
|
||||
for(unsigned int led_idx = 0; led_idx < number_of_leds; led_idx++)
|
||||
{
|
||||
led keyboard_led;
|
||||
|
||||
|
|
@ -600,9 +600,9 @@ VectorMatrix RGBController_QMKOpenRGBRev9::MakeEmptyMatrixMap
|
|||
)
|
||||
{
|
||||
std::vector<std::vector<unsigned int> > matrix_map(height);
|
||||
for (int i = 0; i < height; i++)
|
||||
for (unsigned int i = 0; i < height; i++)
|
||||
{
|
||||
for (int j = 0; j < width; j++)
|
||||
for (unsigned int j = 0; j < width; j++)
|
||||
{
|
||||
matrix_map[i].push_back(NO_LED);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -367,7 +367,7 @@ void RGBController_QMKOpenRGBRevB::SetupZones()
|
|||
/*---------------------------------------------------------*\
|
||||
| Create LEDs |
|
||||
\*---------------------------------------------------------*/
|
||||
for(int led_idx = 0; led_idx < number_of_leds; led_idx++)
|
||||
for(unsigned int led_idx = 0; led_idx < number_of_leds; led_idx++)
|
||||
{
|
||||
led keyboard_led;
|
||||
|
||||
|
|
@ -622,9 +622,9 @@ VectorMatrix RGBController_QMKOpenRGBRevB::MakeEmptyMatrixMap
|
|||
)
|
||||
{
|
||||
std::vector<std::vector<unsigned int> > matrix_map(height);
|
||||
for (int i = 0; i < height; i++)
|
||||
for (unsigned int i = 0; i < height; i++)
|
||||
{
|
||||
for (int j = 0; j < width; j++)
|
||||
for (unsigned int j = 0; j < width; j++)
|
||||
{
|
||||
matrix_map[i].push_back(NO_LED);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -774,7 +774,7 @@ razer_report RazerController::razer_create_mode_breathing_random_extended_matrix
|
|||
return report;
|
||||
}
|
||||
|
||||
razer_report RazerController::razer_create_mode_breathing_random_standard_matrix_report(unsigned char variable_storage, unsigned char led_id)
|
||||
razer_report RazerController::razer_create_mode_breathing_random_standard_matrix_report(unsigned char /*variable_storage*/, unsigned char /*led_id*/)
|
||||
{
|
||||
razer_report report = razer_create_report(0x03, 0x0A, 0x08);
|
||||
|
||||
|
|
|
|||
|
|
@ -73,7 +73,7 @@ void DetectSinowealthMouse(hid_device_info* info, const std::string& name)
|
|||
}
|
||||
else
|
||||
{
|
||||
for(int i = 0; i < usage_count; ++i)
|
||||
for(unsigned int i = 0; i < usage_count; ++i)
|
||||
{
|
||||
if(usages[i])
|
||||
{
|
||||
|
|
@ -109,7 +109,7 @@ void DetectSinowealthKeyboard(hid_device_info* info, const std::string& name)
|
|||
}
|
||||
else
|
||||
{
|
||||
for(int i = 0; i < usage_count; ++i)
|
||||
for(unsigned int i = 0; i < usage_count; ++i)
|
||||
{
|
||||
if(usages[i])
|
||||
{
|
||||
|
|
|
|||
|
|
@ -151,7 +151,7 @@ void SinowealthKeyboardController::SetLEDsDirect(std::vector<RGBColor> colors)
|
|||
/*-----------------------------------------------------*\
|
||||
| Fill in color data |
|
||||
\*-----------------------------------------------------*/
|
||||
for(int i = 0; i < num_keys; i++)
|
||||
for(unsigned int i = 0; i < num_keys; i++)
|
||||
{
|
||||
buf[tkl_keys_per_key_index[i]] = RGBGetBValue(colors[i]);
|
||||
buf[tkl_keys_per_key_index[i] + 0x7E] = RGBGetGValue(colors[i]);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue