mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Fixed some warnings flagged by Clang's static analyzer
This commit is contained in:
parent
d3556dfd7f
commit
a2d03d2266
9 changed files with 52 additions and 12 deletions
|
|
@ -7,7 +7,7 @@ the appropriate libraries on every different platform.
|
|||
There are minimal changes to the Ogg-Vorbis code - a few include paths have
|
||||
been changed to make it build smoothly, and some headers have been added to
|
||||
allow you to exclude it from the build. Any significant code modifications
|
||||
are marked clearly by "JUCE CHANGE STARTS HERE" and "JUCE_CHANGE_ENDS_HERE"
|
||||
are marked clearly by "JUCE CHANGE STARTS HERE" and "JUCE CHANGE ENDS HERE"
|
||||
comments.
|
||||
|
||||
=====================================================================
|
||||
|
|
|
|||
|
|
@ -489,6 +489,10 @@ static int fit_line(lsfit_acc *a,int fits,int *y0,int *y1,
|
|||
y2b+= *y1 * *y1;
|
||||
xyb+= *y1 * x1;
|
||||
bn++;
|
||||
|
||||
// JUCE CHANGE STARTS HERE
|
||||
(void) y2b;
|
||||
// JUCE CHANGE ENDS HERE
|
||||
}
|
||||
|
||||
{
|
||||
|
|
|
|||
|
|
@ -834,6 +834,10 @@ static void dradb4(int ido,int l1,float *cc,float *ch,float *wa1,
|
|||
t1+=t2;
|
||||
t4+=t2;
|
||||
}
|
||||
|
||||
// JUCE CHANGE STARTS HERE
|
||||
(void) t5;
|
||||
// JUCE CHANGE ENDS HERE
|
||||
}
|
||||
|
||||
static void dradbg(int ido,int ip,int l1,int idl1,float *cc,float *c1,
|
||||
|
|
|
|||
|
|
@ -334,6 +334,9 @@ static int _fetch_headers(OggVorbis_File *vf,vorbis_info *vi,vorbis_comment *vc,
|
|||
/* vorbis header; continue setup */
|
||||
vf->ready_state=STREAMSET;
|
||||
if((ret=vorbis_synthesis_headerin(vi,vc,&op))){
|
||||
// JUCE CHANGE STARTS HERE
|
||||
(void) ret;
|
||||
// JUCE CHANGE ENDS HERE
|
||||
ret=OV_EBADHEADER;
|
||||
goto bail_header;
|
||||
}
|
||||
|
|
@ -784,6 +787,9 @@ static int _fetch_and_process_packet(OggVorbis_File *vf,
|
|||
|
||||
if(!readp)return(0);
|
||||
if((ret=_get_next_page(vf,&og,-1))<0){
|
||||
// JUCE CHANGE STARTS HERE
|
||||
(void) ret;
|
||||
// JUCE CHANGE ENDS HERE
|
||||
return(OV_EOF); /* eof. leave unitialized */
|
||||
}
|
||||
|
||||
|
|
@ -865,6 +871,9 @@ static int _fetch_and_process_packet(OggVorbis_File *vf,
|
|||
vf->current_serialno=vf->os.serialno;
|
||||
vf->current_link++;
|
||||
link=0;
|
||||
// JUCE CHANGE STARTS HERE
|
||||
(void) link;
|
||||
// JUCE CHANGE ENDS HERE
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -1667,6 +1676,9 @@ int ov_pcm_seek_page(OggVorbis_File *vf,ogg_int64_t pos){
|
|||
break;
|
||||
}else
|
||||
result=ogg_stream_packetout(&vf->os,NULL);
|
||||
// JUCE CHANGE STARTS HERE
|
||||
(void) result;
|
||||
// JUCE CHANGE ENDS HERE
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -2267,6 +2279,9 @@ static void _ov_getlap(OggVorbis_File *vf,vorbis_info *vi,vorbis_dsp_state *vd,
|
|||
memcpy(lappcm[i]+lapcount,pcm[i],sizeof(**pcm)*samples);
|
||||
lapcount+=samples;
|
||||
}
|
||||
// JUCE CHANGE STARTS HERE
|
||||
(void) lapcount;
|
||||
// JUCE CHANGE ENDS HERE
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue