xiph / speexdsp

Speex audio processing library - THIS IS A MIRROR, DEVELOPMENT HAPPENS AT https://gitlab.xiph.org/xiph/speexdsp
https://speex.org
Other
469 stars 190 forks source link

GCC 7.x warning cleanup - pointer conversion and unused variable #26

Open kcgen opened 5 years ago

kcgen commented 5 years ago
jitter.c: In function ‘jitter_buffer_ctl’:
jitter.c:802:28: warning: ISO C forbids conversion of object pointer to function pointer type [-Wpedantic]
          jitter->destroy = (void (*) (void *))ptr;
                            ^
scal.c: In function ‘speex_decorrelate’:
scal.c:155:11: warning: unused variable ‘N’ [-Wunused-variable]
       int N=2*st->frame_size;
           ^

Feel free to build with -Wall -pedantic to help catch these.
Cheers.