Skip to content

Commit 03d99d1

Browse files
Address a bunch of warnings
1 parent e7c385b commit 03d99d1

12 files changed

+153
-99
lines changed

Controllers/ASRockPolychromeUSBController/ASRockPolychromeUSBController.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ enum
5858
POLYCHROME_USB_ZONE_UNAVAILABLE = 0x1E, // Value from LEDCOUNT CFG if zone not present
5959
};
6060

61-
static const char* polychrome_USB_zone_names[] =
61+
const char* polychrome_USB_zone_names[] =
6262
{
6363
"RGB LED 1 Header",
6464
"RGB LED 2 Header",

Controllers/AlienwareKeyboardController/AlienwareAW510KController.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ void AlienwareAW510KController::SendInitialize()
172172

173173
void AlienwareAW510KController::SetDirect
174174
(
175-
unsigned char zone,
175+
unsigned char /*zone*/,
176176
unsigned char r,
177177
unsigned char g,
178178
unsigned char b
@@ -222,7 +222,7 @@ void AlienwareAW510KController::SendDirectOn
222222
| To Guarantee the data are always %4 =0 append |
223223
| zeros at end of last packet |
224224
\*-----------------------------------------------*/
225-
for(int i = 0; i < (frame_data.size() % 4); i++)
225+
for(unsigned int i = 0; i < (frame_data.size() % 4); i++)
226226
{
227227
SelectedKeys key;
228228
key.idx = 0x00;
@@ -358,7 +358,7 @@ void AlienwareAW510KController::UpdateSingleLED
358358
}
359359
void AlienwareAW510KController::SendMode
360360
(
361-
unsigned char zone,
361+
unsigned char /*zone*/,
362362
unsigned char mode,
363363
unsigned short speed,
364364
unsigned char direction,

Controllers/AlienwareKeyboardController/RGBController_AlienwareAW510K.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,7 @@ void RGBController_AlienwareAW510K::DeviceUpdateLEDs()
395395

396396
void RGBController_AlienwareAW510K::UpdateZoneLEDs(int zone)
397397
{
398-
controller->SetDirect((unsigned char) zone, RGBGetRValue(zones[zone].colors[0]), RGBGetGValue(zones[zone].colors[0]), RGBGetBValue(zones[zone].colors[0]));
398+
controller->SetDirect( RGBGetRValue(zones[zone].colors[0]), RGBGetGValue(zones[zone].colors[0]), RGBGetBValue(zones[zone].colors[0]));
399399
}
400400

401401
void RGBController_AlienwareAW510K::UpdateSingleLED(int led)

Controllers/AsusAuraCoreController/AsusAuraCoreControllerDetect.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
* *
1818
\******************************************************************************************/
1919

20-
void DetectAsusAuraCoreControllers(hid_device_info* info, const std::string&)
20+
void DetectAsusAuraCoreControllers(hid_device_info* info, const std::string& /*name*/)
2121
{
2222
hid_device* dev = hid_open_path(info->path);
2323

@@ -37,7 +37,7 @@ void DetectAsusAuraCoreControllers(hid_device_info* info, const std::string&)
3737
}
3838
}
3939

40-
void DetectAsusAuraCoreLaptopControllers(hid_device_info* info, const std::string& name)
40+
void DetectAsusAuraCoreLaptopControllers(hid_device_info* info, const std::string& /*name*/)
4141
{
4242
hid_device* dev = hid_open_path(info->path);
4343

Controllers/AsusAuraUSBController/AsusAuraMousematController.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ void AuraMousematController::UpdateDevice
110110
usb_buf[0x08] = pattern;
111111
usb_buf[0x09] = 0x00;
112112

113-
for(int i = 0; i < colors.size(); i++)
113+
for(unsigned int i = 0; i < colors.size(); i++)
114114
{
115115
usb_buf[0x0a + i * 3] = RGBGetRValue(colors[i]);
116116
usb_buf[0x0b + i * 3] = RGBGetGValue(colors[i]);

Controllers/AsusAuraUSBController/AsusAuraRyuoAIOController.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ std::string AsusAuraRyuoAIOController::GetLocation()
3333
return("HID: " + location);
3434
}
3535

36-
void AsusAuraRyuoAIOController::SetMode(unsigned char channel, unsigned char mode, unsigned char red, unsigned char grn, unsigned char blu)
36+
void AsusAuraRyuoAIOController::SetMode(unsigned char /*channel*/, unsigned char /*mode*/, unsigned char /*red*/, unsigned char /*grn*/, unsigned char /*blu*/)
3737
{
3838
/*---------------------------------------------------------*\
3939
| This interface is not used in this controller however is |
@@ -56,7 +56,7 @@ void AsusAuraRyuoAIOController::SetMode(unsigned char mode, unsigned char speed,
5656
}
5757
}
5858

59-
void AsusAuraRyuoAIOController::SetChannelLEDs(unsigned char channel, RGBColor * colors, unsigned int num_colors)
59+
void AsusAuraRyuoAIOController::SetChannelLEDs(unsigned char /*channel*/, RGBColor* /*colors*/, unsigned int /*num_colors*/)
6060
{
6161
/*---------------------------------------------------------*\
6262
| This interface is not used in this controller however is |

Controllers/AsusAuraUSBController/RGBController_AsusAuraRyuoAIO.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ void RGBController_AsusAuraRyuoAIO::SetupZones()
169169
SetupColors();
170170
}
171171

172-
void RGBController_AsusAuraRyuoAIO::ResizeZone(int zone, int new_size)
172+
void RGBController_AsusAuraRyuoAIO::ResizeZone(int /*zone*/, int /*new_size*/)
173173
{
174174
/*---------------------------------------------------------*\
175175
| This device does not support resizing zones |

Controllers/AsusAuraUSBController/RGBController_ROGStrixLC_Controller.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ void RGBController_ROGStrixLC_Controller::SetupZones()
171171
SetupColors();
172172
}
173173

174-
void RGBController_ROGStrixLC_Controller::ResizeZone(int zone, int new_size)
174+
void RGBController_ROGStrixLC_Controller::ResizeZone(int /*zone*/, int /*new_size*/)
175175
{
176176
/*---------------------------------------------------------*\
177177
| This device does not support resizing zones |

Controllers/AsusAuraUSBController/ROGStrixLC_Controller.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ std::string ROGStrixLC_Controller::GetLocation()
3434
return("HID: " + location);
3535
}
3636

37-
void ROGStrixLC_Controller::SetMode(unsigned char channel, unsigned char mode, unsigned char red, unsigned char grn, unsigned char blu)
37+
void ROGStrixLC_Controller::SetMode(unsigned char /*channel*/, unsigned char /*mode*/, unsigned char /*red*/, unsigned char /*grn*/, unsigned char /*blu*/)
3838
{
3939
/*---------------------------------------------------------*\
4040
| This interface is not used in this controller however is |
@@ -58,7 +58,7 @@ void ROGStrixLC_Controller::SetMode(unsigned char mode, unsigned char speed, uns
5858
}
5959
}
6060

61-
void ROGStrixLC_Controller::SetChannelLEDs(unsigned char channel, RGBColor * colors, unsigned int num_colors)
61+
void ROGStrixLC_Controller::SetChannelLEDs(unsigned char /*channel*/, RGBColor* /*colors*/, unsigned int /*num_colors*/)
6262
{
6363
/*---------------------------------------------------------*\
6464
| This interface is not used in this controller however is |

qt/OpenRGBDialog2.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1348,7 +1348,7 @@ void OpenRGBDialog2::UpdateDevicesList()
13481348
| Remove all remaining device information tabs, leaving |
13491349
| other information tabs alone |
13501350
\*-----------------------------------------------------*/
1351-
for(std::size_t tab_idx = controllers.size(); tab_idx < ui->InformationTabBar->count(); tab_idx++)
1351+
for(int tab_idx = controllers.size(); tab_idx < ui->InformationTabBar->count(); tab_idx++)
13521352
{
13531353
std::string type_str = ui->InformationTabBar->widget(base_tab)->metaObject()->className();
13541354
if(type_str == "Ui::OpenRGBDeviceInfoPage")

0 commit comments

Comments
 (0)