From fad91f9a46775b41b0c8273e67e5e89938a933d7 Mon Sep 17 00:00:00 2001 From: Adam Honse Date: Sat, 24 Sep 2022 17:47:43 -0500 Subject: [PATCH] Fix warnings in RGBController_QMKOpenRGBRevB.cpp --- .../RGBController_QMKOpenRGBRevB.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/Controllers/QMKOpenRGBController/RGBController_QMKOpenRGBRevB.cpp b/Controllers/QMKOpenRGBController/RGBController_QMKOpenRGBRevB.cpp index d1f4727ba..36e0d5d64 100644 --- a/Controllers/QMKOpenRGBController/RGBController_QMKOpenRGBRevB.cpp +++ b/Controllers/QMKOpenRGBController/RGBController_QMKOpenRGBRevB.cpp @@ -530,7 +530,7 @@ unsigned int RGBController_QMKOpenRGBRevB::CalculateDivisor ( std::vector led_points, std::set rows, - std::set columns + std::set /*columns*/ ) { std::vector< std::vector > row_points(rows.size()); @@ -563,7 +563,7 @@ unsigned int RGBController_QMKOpenRGBRevB::CalculateDivisor } unsigned int divisor = distances[0]; - for(const std::pair &i : counts) + for(const std::pair &i : counts) { if(counts[divisor] < i.second) { @@ -600,7 +600,7 @@ void RGBController_QMKOpenRGBRevB::CountKeyTypes void RGBController_QMKOpenRGBRevB::PlaceLEDsInMaps ( std::set unique_rows, - std::set unique_cols, + std::set /*unique_cols*/, unsigned int divisor, std::vector led_points, std::vector led_flags, @@ -613,7 +613,6 @@ void RGBController_QMKOpenRGBRevB::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++) @@ -690,7 +689,7 @@ void RGBController_QMKOpenRGBRevB::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) {