Fix warnings
This commit is contained in:
parent
755ce20794
commit
be90537d10
12 changed files with 44 additions and 44 deletions
|
|
@ -54,7 +54,7 @@ std::string AsusCerberusKeyboardController::GetSerialString()
|
|||
|
||||
std::string AsusCerberusKeyboardController::GetVersion()
|
||||
{
|
||||
char versionstr[] = "";
|
||||
char versionstr[5];
|
||||
snprintf(versionstr, 3, "%X", version);
|
||||
return(std::string(versionstr, 3));
|
||||
}
|
||||
|
|
|
|||
|
|
@ -301,7 +301,7 @@ void RGBController_AsusCerberusKeyboard::SetupZones()
|
|||
keyboard.matrix_map->map = *matrix_map;
|
||||
zones.push_back(keyboard);
|
||||
|
||||
for(unsigned int led_id = 0; led_id < zone_size; led_id++)
|
||||
for(int led_id = 0; led_id < zone_size; led_id++)
|
||||
{
|
||||
led new_led;
|
||||
new_led.name = led_names[led_id].name;
|
||||
|
|
@ -320,7 +320,7 @@ void RGBController_AsusCerberusKeyboard::ResizeZone(int /*zone*/, int /*new_size
|
|||
|
||||
void RGBController_AsusCerberusKeyboard::DeviceUpdateLEDs()
|
||||
{
|
||||
for(int i = 0; i < colors.size(); i++)
|
||||
for(unsigned int i = 0; i < colors.size(); i++)
|
||||
{
|
||||
uint8_t red = RGBGetRValue(colors[i]);
|
||||
uint8_t green = RGBGetGValue(colors[i]);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue