Skip to content

Commit 14d3c68

Browse files
Fix warnings
1 parent 02af851 commit 14d3c68

3 files changed

Lines changed: 3 additions & 5 deletions

File tree

KeyboardLayoutManager/KeyboardLayoutManager.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -852,8 +852,6 @@ void KeyboardLayoutManager::AddAltName(keyboard_led key)
852852
\*---------------------------------------------------------------------*/
853853
unsigned int edit_row = key.row;
854854
unsigned int edit_col = key.col;
855-
const char* edit_name = key.name;
856-
unsigned int edit_value = key.value;
857855
const char* edit_alt_name = key.alt_name;
858856

859857
/*---------------------------------------------------------------------*\

RGBController/RGBController.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ unsigned char * RGBController::GetDeviceDescription(unsigned int protocol_versio
282282
/*-----------------------------------------------------*\
283283
| LED alternate name strings |
284284
\*-----------------------------------------------------*/
285-
for(int led_idx = 0; led_idx < led_alt_names.size(); led_idx++)
285+
for(std::size_t led_idx = 0; led_idx < led_alt_names.size(); led_idx++)
286286
{
287287
data_size += sizeof(unsigned short);
288288
data_size += strlen(led_alt_names[led_idx].c_str()) + 1;
@@ -725,7 +725,7 @@ unsigned char * RGBController::GetDeviceDescription(unsigned int protocol_versio
725725
memcpy(&data_buf[data_ptr], &num_led_alt_names, sizeof(num_led_alt_names));
726726
data_ptr += sizeof(num_led_alt_names);
727727

728-
for(int led_idx = 0; led_idx < led_alt_names.size(); led_idx++)
728+
for(std::size_t led_idx = 0; led_idx < led_alt_names.size(); led_idx++)
729729
{
730730
/*---------------------------------------------------------*\
731731
| Copy in LED alternate name (size+data) |

qt/DeviceView.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1033,7 +1033,7 @@ bool DeviceView::selectZone(int zone, bool add)
10331033

10341034
int zoneStart = controller->zones[zone].start_idx;
10351035

1036-
for(int led_idx = 0; led_idx < controller->GetLEDsInZone(zone); led_idx++)
1036+
for(std::size_t led_idx = 0; led_idx < controller->GetLEDsInZone(zone); led_idx++)
10371037
{
10381038
if(!selectionFlags[zoneStart + led_idx])
10391039
{

0 commit comments

Comments
 (0)