ref: 3857c4269723d65915d062d0c8a38521ace56d8f
parent: 03dd51381f0b9b2c9f4951ffa63bb1557efaff42
author: Timothy B. Terriberry <tterribe@xiph.org>
date: Fri Mar 1 06:07:44 EST 2013
Better suppression of unused parameter warnings. The old ones gave a different warning on Apple's clang 4.2.
--- a/src/opusfile.c
+++ b/src/opusfile.c
@@ -2766,7 +2766,7 @@
static int op_stereo_filter(OggOpusFile *_of,void *_dst,int _dst_sz,
op_sample *_src,int _nsamples,int _nchannels){
- _of=_of;
+ (void)_of;
_nsamples=OP_MIN(_nsamples,_dst_sz>>1);
if(_nchannels==2)memcpy(_dst,_src,_nsamples*2*sizeof(*_src));
else{
@@ -2806,7 +2806,7 @@
op_sample *_src,int _nsamples,int _nchannels){
float *dst;
int i;
- _of=_of;
+ (void)_of;
dst=(float *)_dst;
if(OP_UNLIKELY(_nsamples*_nchannels>_dst_sz))_nsamples=_dst_sz/_nchannels;
_dst_sz=_nsamples*_nchannels;
@@ -3009,7 +3009,7 @@
static int op_stereo_filter(OggOpusFile *_of,void *_dst,int _dst_sz,
op_sample *_src,int _nsamples,int _nchannels){
- _of=_of;
+ (void)_of;
_nsamples=OP_MIN(_nsamples,_dst_sz>>1);
if(_nchannels==2)memcpy(_dst,_src,_nsamples*2*sizeof(*_src));
else{