Alfred E. Heggestad
2006-Jun-12 11:03 UTC
[Speex-dev] [PATCH] warning: missing initializer for SPEEX_STEREO_STATE_INIT
hi this code gives me a warning: SpeexStereoState stereo = SPEEX_STEREO_STATE_INIT; modules/speex/mod.c: In function 'alloc': modules/speex/mod.c:61: warning: missing initializer modules/speex/mod.c:61: warning: (near initialization for 'stereo_init.reserved1') would it be possible to add this patch to you svn ? Index: include/speex/speex_stereo.h ==================================================================--- include/speex/speex_stereo.h (revision 11563) +++ include/speex/speex_stereo.h (working copy) @@ -53,7 +53,7 @@ } SpeexStereoState; /** Initialization value for a stereo state */ -#define SPEEX_STEREO_STATE_INIT {1,.5,1,1} +#define SPEEX_STEREO_STATE_INIT {1,.5,1,1,0,0} /** Transforms a stereo frame into a mono frame and stores intensity stereo info in 'bits' */ void speex_encode_stereo(float *data, int frame_size, SpeexBits *bits); /alfred -- Alfred E. Heggestad <aeh@db.org> Web: http://aeh.db.org/ VoIP: <sip:alfredh@symbianos.org> Phone: +47 21 98 71 20 Mobile: +47 98 23 67 05 Skype: alfredheggestad
Jean-Marc Valin
2006-Jun-13 01:46 UTC
[Speex-dev] [PATCH] warning: missing initializer for SPEEX_STEREO_STATE_INIT
Thanks for the fix. It's now in svn. Jean-Marc Le lundi 12 juin 2006 ? 19:59 +0200, Alfred E. Heggestad a ?crit :> hi > > this code gives me a warning: > > SpeexStereoState stereo = SPEEX_STEREO_STATE_INIT; > > > > modules/speex/mod.c: In function 'alloc': > modules/speex/mod.c:61: warning: missing initializer > modules/speex/mod.c:61: warning: (near initialization for > 'stereo_init.reserved1') > > > would it be possible to add this patch to you svn ? > > > Index: include/speex/speex_stereo.h > ==================================================================> --- include/speex/speex_stereo.h (revision 11563) > +++ include/speex/speex_stereo.h (working copy) > @@ -53,7 +53,7 @@ > } SpeexStereoState; > > /** Initialization value for a stereo state */ > -#define SPEEX_STEREO_STATE_INIT {1,.5,1,1} > +#define SPEEX_STEREO_STATE_INIT {1,.5,1,1,0,0} > > /** Transforms a stereo frame into a mono frame and stores intensity > stereo info in 'bits' */ > void speex_encode_stereo(float *data, int frame_size, SpeexBits *bits); > > > > /alfred >