From 6d983d5f0bcbed1158565445fb47121d762398e4 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Tue, 7 Aug 2018 15:36:22 +0200 Subject: Fix -Wnon-virtual-dtor `struct ArdourSurface::LaunchControlXL::LED' has virtual functions and accessible non-virtual destructor [-Wnon-virtual-dtor] --- libs/surfaces/launch_control_xl/launch_control_xl.h | 1 + 1 file changed, 1 insertion(+) diff --git a/libs/surfaces/launch_control_xl/launch_control_xl.h b/libs/surfaces/launch_control_xl/launch_control_xl.h index 207cef77cc..418326d870 100644 --- a/libs/surfaces/launch_control_xl/launch_control_xl.h +++ b/libs/surfaces/launch_control_xl/launch_control_xl.h @@ -156,6 +156,7 @@ public: struct LED { LED(uint8_t i, LEDColor c, LaunchControlXL& l) : _index(i), _color(c), _flag(LEDFlag::Normal), lcxl(&l) {} LED(uint8_t i, LEDColor c, LEDFlag f, LaunchControlXL& lcxl) : _index(i), _color(c), _flag(f) {} + virtual ~LED() {} LEDColor color() const { return _color; } LEDFlag flag() const { return _flag; } -- cgit v1.2.3