#3 drumkv1_fx.h: possible reads of uninit'ed data ?

0.6.3
closed
nobody
None
2015-05-09
2014-03-29
dcb
No

./drumkv1_fx.h:155:8: warning: variable 'b0' is used uninitialized whenever 'if' condition is false [-Wsometimes-uninitialized]
./drumkv1_fx.h:87:8: warning: variable 'b0' is used uninitialized whenever 'if' condition is false [-Wsometimes-uninitialized]
./drumkv1_fx.h:155:8: warning: variable 'a0' is used uninitialized whenever 'if' condition is false [-Wsometimes-uninitialized]
./drumkv1_fx.h:87:8: warning: variable 'a0' is used uninitialized whenever 'if' condition is false [-Wsometimes-uninitialized]
./drumkv1_fx.h:155:8: warning: variable 'b1' is used uninitialized whenever 'if' condition is false [-Wsometimes-uninitialized]
./drumkv1_fx.h:87:8: warning: variable 'b1' is used uninitialized whenever 'if' condition is false [-Wsometimes-uninitialized]
./drumkv1_fx.h:155:8: warning: variable 'b2' is used uninitialized whenever 'if' condition is false [-Wsometimes-uninitialized]
./drumkv1_fx.h:87:8: warning: variable 'b2' is used uninitialized whenever 'if' condition is false [-Wsometimes-uninitialized]
./drumkv1_fx.h:155:8: warning: variable 'a1' is used uninitialized whenever 'if' condition is false [-Wsometimes-uninitialized]
./drumkv1_fx.h:87:8: warning: variable 'a1' is used uninitialized whenever 'if' condition is false [-Wsometimes-uninitialized]
./drumkv1_fx.h:155:8: warning: variable 'a2' is used uninitialized whenever 'if' condition is false [-Wsometimes-uninitialized]
./drumkv1_fx.h:87:8: warning: variable 'a2' is used uninitialized whenever 'if' condition is false [-Wsometimes-uninitialized]

Suggest initialise local variables before first use.

Discussion

    • status: open --> pending
     
    • status: pending --> closed