Audio library: uninitialized variables

Status
Not open for further replies.

TeeVil

Member
When I re-compile my project I get the following warnings:
Code:
.\hardware\teensy\avr\libraries\Audio\biquad.h: In function 'void getCoefficients(T*, BiquadType, double, double, double, double, bool) [with T = float]':
.\hardware\teensy\avr\libraries\Audio\biquad.h:131:2: warning: 'a2' may be used uninitialized in this function [-Wmaybe-uninitialized]
  *coeffs=(T)(-a2 * a0Inv);
This can easily be fixed by adding a "default" clause to the switch statement in getCoefficients(). Perhaps this can be fixed in the next version of the library? Just to keep things neat :)
 
Status
Not open for further replies.
Back
Top