diff options
author | Ralph Giles <giles@xiph.org> | 2006-01-09 02:10:04 +0000 |
---|---|---|
committer | Ralph Giles <giles@xiph.org> | 2006-01-09 02:10:04 +0000 |
commit | 99ef5101f31f961c1cdf8f5133133bacf21f7e79 (patch) | |
tree | 551c75b683ab4f4405acc24c07e3be3361fe46ce | |
parent | 521f4d211d5435e623992b09bbd1d8e21e7af3c2 (diff) | |
download | tremor-99ef5101f31f961c1cdf8f5133133bacf21f7e79.tar.gz |
Suppress some (spurious) uninitialized variable warnings.
git-svn-id: https://svn.xiph.org/trunk/Tremor@10710 0101bb08-14d6-0310-b084-bc0e0c8e3800
-rw-r--r-- | bitwise.c | 4 | ||||
-rw-r--r-- | sharedbook.c | 4 | ||||
-rw-r--r-- | vorbisfile.c | 2 |
3 files changed, 5 insertions, 5 deletions
@@ -81,7 +81,7 @@ void oggpack_readinit(oggpack_buffer *b,ogg_reference *r){ /* Read in bits without advancing the bitptr; bits <= 32 */ long oggpack_look(oggpack_buffer *b,int bits){ unsigned long m=mask[bits]; - unsigned long ret; + unsigned long ret=-1; bits+=b->headbit; @@ -175,7 +175,7 @@ int oggpack_eop(oggpack_buffer *b){ /* bits <= 32 */ long oggpack_read(oggpack_buffer *b,int bits){ unsigned long m=mask[bits]; - ogg_uint32_t ret; + ogg_uint32_t ret=-1; bits+=b->headbit; diff --git a/sharedbook.c b/sharedbook.c index 0eb29a6..b982c7a 100644 --- a/sharedbook.c +++ b/sharedbook.c @@ -210,7 +210,7 @@ ogg_int32_t *_book_unquantize(const static_codebook *b,int n,int *sparsemap, int indexdiv=1; for(k=0;k<b->dim;k++){ int index= (j/indexdiv)%quantvals; - int point; + int point=0; int val=VFLOAT_MULTI(delta,delpoint, abs(b->quantlist[index]),&point); @@ -244,7 +244,7 @@ ogg_int32_t *_book_unquantize(const static_codebook *b,int n,int *sparsemap, int lastpoint=0; for(k=0;k<b->dim;k++){ - int point; + int point=0; int val=VFLOAT_MULTI(delta,delpoint, abs(b->quantlist[j*b->dim+k]),&point); diff --git a/vorbisfile.c b/vorbisfile.c index 0da4e0c..50b43f2 100644 --- a/vorbisfile.c +++ b/vorbisfile.c @@ -987,7 +987,7 @@ int ov_raw_seek(OggVorbis_File *vf,ogg_int64_t pos){ int lastblock=0; int accblock=0; int thisblock; - int eosflag; + int eosflag=0; work_os=ogg_stream_create(vf->current_serialno); /* get the memory ready */ while(1){ |