diff --git a/Makefile b/Makefile index 4fb43db1..2520b220 100644 --- a/Makefile +++ b/Makefile @@ -910,7 +910,7 @@ endif ifeq ($(USE_CODEC_OPUS),1) CLIENT_CFLAGS += -DUSE_CODEC_OPUS ifeq ($(USE_INTERNAL_OPUS),1) - CLIENT_CFLAGS += -DOPUS_BUILD -DFLOATING_POINT -DUSE_ALLOCA \ + CLIENT_CFLAGS += -DOPUS_BUILD -DHAVE_LRINTF -DFLOATING_POINT -DUSE_ALLOCA \ -I$(OPUSDIR)/include -I$(OPUSDIR)/celt -I$(OPUSDIR)/silk \ -I$(OPUSDIR)/silk/float diff --git a/code/asm/ftola.c b/code/asm/ftola.c index 6e8ff061..e805acb4 100644 --- a/code/asm/ftola.c +++ b/code/asm/ftola.c @@ -61,7 +61,7 @@ int qvmftolsse(void) long qftolx87(float f) { long retval; - unsigned short oldcw; + unsigned short oldcw = 0; __asm__ volatile ( @@ -81,7 +81,7 @@ long qftolx87(float f) int qvmftolx87(void) { int retval; - unsigned short oldcw; + unsigned short oldcw = 0; __asm__ volatile ( diff --git a/code/opusfile-0.2/src/opusfile.c b/code/opusfile-0.2/src/opusfile.c index 31d013a9..812c2c45 100644 --- a/code/opusfile-0.2/src/opusfile.c +++ b/code/opusfile-0.2/src/opusfile.c @@ -2935,7 +2935,6 @@ static const float OP_STEREO_DOWNMIX[OP_NCHANNELS_MAX-2][OP_NCHANNELS_MAX][2]={ static int op_stereo_filter(OggOpusFile *_of,void *_dst,int _dst_sz, op_sample *_src,int _nsamples,int _nchannels){ - _of=_of; _nsamples=OP_MIN(_nsamples,_dst_sz>>1); if(_nchannels==2)memcpy(_dst,_src,_nsamples*2*sizeof(*_src)); else{ diff --git a/code/qcommon/q_platform.h b/code/qcommon/q_platform.h index f2baf1c7..c5591505 100644 --- a/code/qcommon/q_platform.h +++ b/code/qcommon/q_platform.h @@ -179,11 +179,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA #define OS_STRING "kFreeBSD" #endif -#ifdef __clang__ -#define ID_INLINE static inline -#else #define ID_INLINE inline -#endif #define PATH_SEP '/'