From d4f8675fa7509b841052c45de5e40f06f9a760f8 Mon Sep 17 00:00:00 2001 From: Maurice Makaay Date: Thu, 22 Apr 2021 17:59:08 +0200 Subject: [PATCH] Fixed a few C++ build warnings. --- light/color_instant_handler.h | 2 -- light/color_rgb_light.h | 1 - 2 files changed, 3 deletions(-) diff --git a/light/color_instant_handler.h b/light/color_instant_handler.h index e900f35..4bacb05 100644 --- a/light/color_instant_handler.h +++ b/light/color_instant_handler.h @@ -29,8 +29,6 @@ namespace bslamp2 { class ColorInstantHandler : public GPIOOutputs { public: bool set_light_color_values(light::LightColorValues v) { - GPIOOutputs *delegate; - // The actual implementation of the various light modes is in // separated targeted classes. These classes are called here // in a chain of command-like pattern, to let the first one diff --git a/light/color_rgb_light.h b/light/color_rgb_light.h index 7a3a6a9..b6857a5 100644 --- a/light/color_rgb_light.h +++ b/light/color_rgb_light.h @@ -273,7 +273,6 @@ public: v.get_brightness(), &rgb_a_); // Determine duty cycle measurements for the inner ring. - auto level_b = ceil(level); set_duty_cycles_( &rgbp_b_, level_a, v.get_red(), v.get_green(), v.get_blue(), v.get_brightness(), &rgb_b_);