mirror of
https://github.com/ioquake/ioq3.git
synced 2024-11-10 07:11:46 +00:00
Fix some warnings
This commit is contained in:
parent
02d197ca08
commit
0c0019a2d1
3 changed files with 3 additions and 3 deletions
|
@ -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){
|
||||
|
|
|
@ -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];
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue