diff options
author | Monty <xiphmont@xiph.org> | 2015-03-02 23:03:34 +0000 |
---|---|---|
committer | Monty <xiphmont@xiph.org> | 2015-03-02 23:03:34 +0000 |
commit | 65e87ab892b8e3a3ddf852cb4afc80f424fc048e (patch) | |
tree | 11a58b3d8698be47404601e9d24bf483b71b6c68 | |
parent | c6d0be61aa81e33debdb4b91752e9367acf41072 (diff) | |
download | libvorbis-git-65e87ab892b8e3a3ddf852cb4afc80f424fc048e.tar.gz |
Suppress spurious 'may be used uninitialized' gcc warnings in floor1.c
encode with static initializers.
svn path=/trunk/vorbis/; revision=19455
-rw-r--r-- | lib/floor1.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/floor1.c b/lib/floor1.c index 49ef52df..da248f4a 100644 --- a/lib/floor1.c +++ b/lib/floor1.c @@ -855,7 +855,9 @@ int floor1_encode(oggpack_buffer *opb,vorbis_block *vb, /* generate the partition's first stage cascade value */ if(csubbits){ - int maxval[8]; + int maxval[8]={0,0,0,0,0,0,0,0}; /* gcc's static analysis + issues a warning without + initialization */ for(k=0;k<csub;k++){ int booknum=info->class_subbook[class][k]; if(booknum<0){ |