Skip to content

Commit 1cfd602

Browse files
Geobot19CalcProgrammer1
authored andcommitted
Fixed all the warnings I could
1 parent 75fd43c commit 1cfd602

File tree

8 files changed

+23
-23
lines changed

8 files changed

+23
-23
lines changed

Controllers/LianLiController/LianLiUniHub_AL10Controller.cpp

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -580,17 +580,17 @@ void LianLiUniHub_AL10Controller::Synchronize()
580580
\*--------------------------------------------------------------------*/
581581
// uint8_t control = 0;
582582

583-
// /*-------------------------------------*\
584-
// | Configure fan settings |
585-
// \*-------------------------------------*/
583+
/*-------------------------------------*\
584+
| Configure fan settings |
585+
\*-------------------------------------*/
586586
// for(const Channel& channel : channels)
587587
// {
588588
// if(channel.fanSpeed == UNIHUB_AL10_FAN_SPEED_PWM)
589589
// {
590-
// /*-----------------------------*\
591-
// | Configure the fan to pwm |
592-
// | control |
593-
// \*-----------------------------*/
590+
/*-----------------------------*\
591+
| Configure the fan to pwm |
592+
| control |
593+
\*-----------------------------*/
594594
// uint8_t config_pwm[1] = { 0x00 };
595595

596596
// control |= (0x01 << channel.index);
@@ -600,20 +600,20 @@ void LianLiUniHub_AL10Controller::Synchronize()
600600
// }
601601
// else
602602
// {
603-
// /*-----------------------------*\
604-
// | Configure the fan to hub |
605-
// | control and set speed |
606-
// \*-----------------------------*/
603+
/*-----------------------------*\
604+
| Configure the fan to hub |
605+
| control and set speed |
606+
\*-----------------------------*/
607607
// uint8_t config_hub[2] = { (uint8_t)(channel.fanSpeed >> 0x08), (uint8_t)(channel.fanSpeed & 0xFF) };
608608

609609
// SendConfig(channel.fanHubActionAddress, config_hub, sizeof(config_hub));
610610
// SendCommit(channel.fanHubCommitAddress);
611611
// }
612612
// }
613613

614-
// /*-------------------------------------*\
615-
// | Configure fan control modes |
616-
// \*-------------------------------------*/
614+
/*-------------------------------------*\
615+
| Configure fan control modes |
616+
\*-------------------------------------*/
617617
// uint8_t config_fan_mode[2] = { 0x31, (uint8_t)(0xF0 | control) };
618618

619619
// SendConfig(UNIHUB_AL10_ACTION_ADDRESS, config_fan_mode, sizeof(config_fan_mode));

Controllers/NollieController/NollieController.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
using namespace std::chrono_literals;
1313

14-
NollieController::NollieController(hid_device* dev_handle, const char* path, unsigned short pid)
14+
NollieController::NollieController(hid_device* dev_handle, const char* path, unsigned short /*pid*/)
1515
{
1616
dev = dev_handle;
1717
location = path;

Controllers/NollieController/RGBController_Nollie.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ void RGBController_Nollie::DeviceUpdateLEDs()
152152
}
153153
}
154154
std::sort(ChSort.begin(), ChSort.end());
155-
for (int i = 0; i < ChSort.size(); i++)
155+
for (std::size_t i = 0; i < ChSort.size(); i++)
156156
{
157157
int* ptr = std::find(channel_index, channel_index + 32, ChSort[i]);
158158
int zone_idx = ptr - channel_index;

Controllers/OKSController/OKSKeyboardController.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ unsigned short OKSKeyboardController::GetUSBPID()
5050
return(usb_pid);
5151
}
5252

53-
void OKSKeyboardController::SendColors(unsigned char* color_data, unsigned int color_data_size)
53+
void OKSKeyboardController::SendColors(unsigned char* color_data, unsigned int /*color_data_size*/)
5454
{
5555
char usb_buf[65];
5656
union kb2_port_t Pack;
@@ -86,7 +86,7 @@ void OKSKeyboardController::SendColors(unsigned char* color_data, unsigned int c
8686
std::this_thread::sleep_for(std::chrono::milliseconds(5));
8787
}
8888

89-
void OKSKeyboardController::SendKeyboardModeEx(const mode &m, unsigned char red, unsigned char green, unsigned char blue)
89+
void OKSKeyboardController::SendKeyboardModeEx(const mode &m, unsigned char /*red*/, unsigned char /*green*/, unsigned char /*blue*/)
9090
{
9191
union kb2_port_t Pack;
9292
kb2M_wrgb(&Pack, m.brightness, m.value, m.speed, m.direction);

Controllers/OKSController/RGBController_OKSKeyboard.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ void RGBController_OKSKeyboard::DeviceUpdateLEDs()
269269
controller->SendColors(colordata, colors.size()*3);
270270
}
271271

272-
void RGBController_OKSKeyboard::UpdateZoneLEDs(int zone)
272+
void RGBController_OKSKeyboard::UpdateZoneLEDs(int /*zone*/)
273273
{
274274
DeviceUpdateLEDs();
275275
}
@@ -290,7 +290,7 @@ void RGBController_OKSKeyboard::DeviceUpdateMode()
290290
unsigned char red = 0x00;
291291
unsigned char grn = 0x00;
292292
unsigned char blu = 0x00;
293-
unsigned char random = (modes[active_mode].color_mode == MODE_COLORS_RANDOM);
293+
//unsigned char random = (modes[active_mode].color_mode == MODE_COLORS_RANDOM);
294294

295295
if(modes[active_mode].colors.size() > 0)
296296
{

Controllers/PalitGPUController/PalitGPUControllerDetect.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ void DetectPalitGPUControllers(i2c_smbus_interface* bus, uint8_t i2c_addr, const
2828
}
2929

3030
const uint8_t palit[] = {'P', 'A', 'L', 'I', 'T'};
31-
for (int i = 0; i < sizeof(palit); i++)
31+
for (size_t i = 0; i < sizeof(palit); i++)
3232
{
3333
int32_t letter = bus->i2c_smbus_read_byte_data(i2c_addr, 0x07 + i);
3434
if (palit[i] != letter)

Controllers/SRGBmodsController/SRGBmodsLEDControllerV1.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ std::string SRGBmodsLEDControllerV1::GetSerialString()
4343
return(return_string);
4444
}
4545

46-
void SRGBmodsLEDControllerV1::SetChannelLEDs(unsigned char channel, RGBColor* colors, unsigned int num_colors)
46+
void SRGBmodsLEDControllerV1::SetChannelLEDs(unsigned char /*channel*/, RGBColor* colors, unsigned int num_colors)
4747
{
4848
/*-----------------------------------------------------*\
4949
| Determine number of packets to send |

Controllers/ZotacV2GPUController/RGBController_ZotacV2GPU.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -408,7 +408,7 @@ void RGBController_ZotacV2GPU::DeviceUpdateMode()
408408
if(zoneConfig.mode == ZOTAC_V2_GPU_MODE_DUET)
409409
{
410410
zoneConfig.colorPreset = ZOTAC_V2_GPU_DUET_PRESETS.size(); // custom
411-
for(int i = 0; i < ZOTAC_V2_GPU_DUET_PRESETS.size(); ++i)
411+
for(size_t i = 0; i < ZOTAC_V2_GPU_DUET_PRESETS.size(); ++i)
412412
{
413413
if(zoneConfig.color1 == ZOTAC_V2_GPU_DUET_PRESETS[i].first &&
414414
zoneConfig.color2 == ZOTAC_V2_GPU_DUET_PRESETS[i].second)

0 commit comments

Comments
 (0)