Fixed all the warnings I could

This commit is contained in:
Cooper Hall 2023-07-06 23:39:19 +00:00 committed by Adam Honse
parent 75fd43c131
commit 1cfd60261e
8 changed files with 23 additions and 23 deletions

View file

@ -50,7 +50,7 @@ unsigned short OKSKeyboardController::GetUSBPID()
return(usb_pid);
}
void OKSKeyboardController::SendColors(unsigned char* color_data, unsigned int color_data_size)
void OKSKeyboardController::SendColors(unsigned char* color_data, unsigned int /*color_data_size*/)
{
char usb_buf[65];
union kb2_port_t Pack;
@ -86,7 +86,7 @@ void OKSKeyboardController::SendColors(unsigned char* color_data, unsigned int c
std::this_thread::sleep_for(std::chrono::milliseconds(5));
}
void OKSKeyboardController::SendKeyboardModeEx(const mode &m, unsigned char red, unsigned char green, unsigned char blue)
void OKSKeyboardController::SendKeyboardModeEx(const mode &m, unsigned char /*red*/, unsigned char /*green*/, unsigned char /*blue*/)
{
union kb2_port_t Pack;
kb2M_wrgb(&Pack, m.brightness, m.value, m.speed, m.direction);

View file

@ -269,7 +269,7 @@ void RGBController_OKSKeyboard::DeviceUpdateLEDs()
controller->SendColors(colordata, colors.size()*3);
}
void RGBController_OKSKeyboard::UpdateZoneLEDs(int zone)
void RGBController_OKSKeyboard::UpdateZoneLEDs(int /*zone*/)
{
DeviceUpdateLEDs();
}
@ -290,7 +290,7 @@ void RGBController_OKSKeyboard::DeviceUpdateMode()
unsigned char red = 0x00;
unsigned char grn = 0x00;
unsigned char blu = 0x00;
unsigned char random = (modes[active_mode].color_mode == MODE_COLORS_RANDOM);
//unsigned char random = (modes[active_mode].color_mode == MODE_COLORS_RANDOM);
if(modes[active_mode].colors.size() > 0)
{