From dc0d2e2d2f783af17e960dc7c6e7d19e6deec5b5 Mon Sep 17 00:00:00 2001 From: Adam Honse Date: Wed, 26 Aug 2026 19:15:11 -0500 Subject: [PATCH] Fix warnings in HIDLampArrayController.cpp --- .../HIDLampArrayController/HIDLampArrayController.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/Controllers/HIDLampArrayController/HIDLampArrayController.cpp b/Controllers/HIDLampArrayController/HIDLampArrayController.cpp index 8e595f660..694ce1100 100644 --- a/Controllers/HIDLampArrayController/HIDLampArrayController.cpp +++ b/Controllers/HIDLampArrayController/HIDLampArrayController.cpp @@ -96,7 +96,7 @@ HIDLampArrayController::HIDLampArrayController(hid_device *dev_handle, const cha /*-----------------------------------------------------*\ | Get the report IDs for each report | \*-----------------------------------------------------*/ - for(const std::pair& pair : usage_to_report_id) + for(const std::pair& pair : usage_to_report_id) { switch(pair.first) { @@ -229,7 +229,6 @@ std::vector HIDLampArrayController::GetLamps() void HIDLampArrayController::GetLampArrayAttributesReport() { unsigned char usb_buf[sizeof(LampArrayAttributes) + 1]; - int report_size; memset(usb_buf, 0, sizeof(usb_buf)); @@ -241,7 +240,7 @@ void HIDLampArrayController::GetLampArrayAttributesReport() /*-----------------------------------------------------*\ | Get the report | \*-----------------------------------------------------*/ - report_size = hid_get_feature_report(dev, usb_buf, sizeof(usb_buf)); + hid_get_feature_report(dev, usb_buf, sizeof(usb_buf)); memcpy(&LampArray, &usb_buf[1], sizeof(LampArray)); } @@ -249,7 +248,6 @@ void HIDLampArrayController::GetLampArrayAttributesReport() void HIDLampArrayController::GetLampAttributesResponseReport() { unsigned char usb_buf[65]; - int report_size; LampAttributes attributes; memset(usb_buf, 0, sizeof(usb_buf)); @@ -262,7 +260,7 @@ void HIDLampArrayController::GetLampAttributesResponseReport() /*-----------------------------------------------------*\ | Get the report | \*-----------------------------------------------------*/ - report_size = hid_get_feature_report(dev, usb_buf, sizeof(usb_buf)); + hid_get_feature_report(dev, usb_buf, sizeof(usb_buf)); memcpy(&attributes, &usb_buf[1], sizeof(attributes));