From 4b575a780a33523dfcd24025027dd96647d185ec Mon Sep 17 00:00:00 2001 From: Adam Honse Date: Sat, 24 Sep 2022 20:28:29 -0500 Subject: [PATCH] Fix warnings in RGBController_QMKOpenRGBRevD.cpp --- .../RGBController_QMKOpenRGBRevD.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/Controllers/QMKOpenRGBController/RGBController_QMKOpenRGBRevD.cpp b/Controllers/QMKOpenRGBController/RGBController_QMKOpenRGBRevD.cpp index aa5a49182..696646dc7 100644 --- a/Controllers/QMKOpenRGBController/RGBController_QMKOpenRGBRevD.cpp +++ b/Controllers/QMKOpenRGBController/RGBController_QMKOpenRGBRevD.cpp @@ -532,7 +532,7 @@ unsigned int RGBController_QMKOpenRGBRevD::CalculateDivisor ( std::vector led_points, std::set rows, - std::set columns + std::set /*columns*/ ) { std::vector< std::vector > row_points(rows.size()); @@ -565,7 +565,7 @@ unsigned int RGBController_QMKOpenRGBRevD::CalculateDivisor } unsigned int divisor = distances[0]; - for(const std::pair &i : counts) + for(const std::pair &i : counts) { if(counts[divisor] < i.second) { @@ -602,7 +602,7 @@ void RGBController_QMKOpenRGBRevD::CountKeyTypes void RGBController_QMKOpenRGBRevD::PlaceLEDsInMaps ( std::set unique_rows, - std::set unique_cols, + std::set /*unique_cols*/, unsigned int divisor, std::vector led_points, std::vector led_flags, @@ -615,7 +615,6 @@ void RGBController_QMKOpenRGBRevD::PlaceLEDsInMaps unsigned int x = 0; unsigned int y = 0; - unsigned int openrgb_idx = 0; unsigned int underglow_counter = 0; for(unsigned int i = 0; i < controller->GetTotalNumberOfLEDs(); i++) @@ -692,7 +691,7 @@ void RGBController_QMKOpenRGBRevD::CleanMatrixMaps can_break = false; can_break_udg = false; - for(std::size_t j = matrix_map[i].size() - 1; j --> 0; ) + for(int j = matrix_map[i].size() - 1; j --> 0; ) { if(matrix_map[i][j] != NO_LED && width < (j + 1) && !can_break) {