Browse Source

Merge pull request #115 from CardinalModules/lto-fixes

Fix maybe uninitialized warnings in Shelves and Streams
v2
Andrew Belt GitHub 3 years ago
parent
commit
5d373aaf2a
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      src/Shelves.cpp
  2. +1
    -1
      src/Streams.cpp

+ 1
- 1
src/Shelves.cpp View File

@@ -119,7 +119,7 @@ struct Shelves : Module {
int channels = std::max(inputs[IN_INPUT].getChannels(), 1);

// Reuse the same frame object for multiple engines because the params aren't touched.
shelves::ShelvesEngine::Frame frame;
shelves::ShelvesEngine::Frame frame = {};
frame.pre_gain = preGain;

frame.hs_freq_knob = rescale(params[HS_FREQ_PARAM].getValue(), freqMin, freqMax, 0.f, 1.f);


+ 1
- 1
src/Streams.cpp View File

@@ -275,7 +275,7 @@ struct Streams : Module {

// Reuse the same frame object for multiple engines because the params
// aren't touched.
streams::StreamsEngine::Frame frame;
streams::StreamsEngine::Frame frame = {};

frame.ch1.shape_knob = params[CH1_SHAPE_PARAM] .getValue();
frame.ch1.mod_knob = params[CH1_MOD_PARAM] .getValue();


Loading…
Cancel
Save