(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:
@@ -9376,9 +9376,9 @@ uint16_t mode_particlefireworks(void) {
|
||||
// check each rocket's state and emit particles according to its state: moving up = emit exhaust, at top = explode; falling down = standby time
|
||||
uint32_t emitparticles, frequency, baseangle, hueincrement; // number of particles to emit for each rocket's state
|
||||
// variables for circular explosions
|
||||
[[maybe_unused]] int32_t speed, currentspeed, speedvariation, percircle;
|
||||
[[maybe_unused]] int32_t speed = 0, currentspeed, speedvariation, percircle;
|
||||
int32_t counter = 0;
|
||||
[[maybe_unused]] uint16_t angle;
|
||||
[[maybe_unused]] uint16_t angle = 0;
|
||||
[[maybe_unused]] unsigned angleincrement;
|
||||
bool circularexplosion = false;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user