(chores) cleanup some compiler warnings
* switch-cases that fall through * potential buffer overflow in improv.cpp * potentially uninitialized variables in FX.cpp * potential array out-of-range on segment::col[] * minor optimization: only apply gamma correction when result is needed * tag some possibly unused variables with [[maybe_unused]]
This commit is contained in:
@@ -173,8 +173,8 @@ Segment& Segment::operator= (const Segment &orig) {
|
||||
transitional = false; // copied segment cannot be in transition
|
||||
if (name) delete[] name;
|
||||
if (_t) delete _t;
|
||||
CRGB* oldLeds = ledsrgb;
|
||||
size_t oldLedsSize = ledsrgbSize;
|
||||
// [[maybe_unused]] CRGB* oldLeds = ledsrgb;
|
||||
// [[maybe_unused]] size_t oldLedsSize = ledsrgbSize;
|
||||
if (ledsrgb && !Segment::_globalLeds) d_free(ledsrgb);
|
||||
deallocateData();
|
||||
// copy source
|
||||
|
||||
Reference in New Issue
Block a user