diff options
author | Tim Angus <tim.angus@roslin.ed.ac.uk> | 2014-08-27 11:24:25 +0100 |
---|---|---|
committer | Tim Angus <tim@ngus.net> | 2014-08-28 11:20:29 +0100 |
commit | 346af6847163601e4e38aa316924996e6841988c (patch) | |
tree | 2effb2d89903070d0867d83d39cbdb37a157f93b | |
parent | 43ce010079fab53bffd21da3805f704ed8acabd7 (diff) |
Fix some warnings
-rw-r--r-- | src/libvorbis-1.3.4/lib/floor1.c | 2 | ||||
-rw-r--r-- | src/libvorbis-1.3.4/lib/lsp.c | 2 | ||||
-rw-r--r-- | src/libvorbis-1.3.4/lib/vorbisfile.c | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/src/libvorbis-1.3.4/lib/floor1.c b/src/libvorbis-1.3.4/lib/floor1.c index 097c583d..c0515021 100644 --- a/src/libvorbis-1.3.4/lib/floor1.c +++ b/src/libvorbis-1.3.4/lib/floor1.c @@ -872,7 +872,7 @@ 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}; for(k=0;k<csub;k++){ int booknum=info->class_subbook[class][k]; if(booknum<0){ diff --git a/src/libvorbis-1.3.4/lib/lsp.c b/src/libvorbis-1.3.4/lib/lsp.c index 50031a7a..c7860351 100644 --- a/src/libvorbis-1.3.4/lib/lsp.c +++ b/src/libvorbis-1.3.4/lib/lsp.c @@ -309,7 +309,7 @@ static int comp(const void *a,const void *b){ #define EPSILON 10e-7 static int Laguerre_With_Deflation(float *a,int ord,float *r){ int i,m; - double lastdelta=0.f; + double lastdelta; double *defl=alloca(sizeof(*defl)*(ord+1)); for(i=0;i<=ord;i++)defl[i]=a[i]; diff --git a/src/libvorbis-1.3.4/lib/vorbisfile.c b/src/libvorbis-1.3.4/lib/vorbisfile.c index 84bf8c31..a20d0428 100644 --- a/src/libvorbis-1.3.4/lib/vorbisfile.c +++ b/src/libvorbis-1.3.4/lib/vorbisfile.c @@ -1827,7 +1827,7 @@ vorbis_comment *ov_comment(OggVorbis_File *vf,int link){ } } -static int host_is_big_endian() { +static int host_is_big_endian(void) { ogg_int32_t pattern = 0xfeedface; /* deadbeef */ unsigned char *bytewise = (unsigned char *)&pattern; if (bytewise[0] == 0xfe) return 1; |