From d724d0adfe10db8042f0d4d2a971e73b0bcec902 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Sun, 16 Sep 2012 00:26:36 +0000 Subject: code cleanup: quiet warnings for gcc's -Wundef, -Wmissing-declarations --- intern/audaspace/OpenAL/AUD_OpenALDevice.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'intern/audaspace/OpenAL') diff --git a/intern/audaspace/OpenAL/AUD_OpenALDevice.cpp b/intern/audaspace/OpenAL/AUD_OpenALDevice.cpp index c3f3f46d188..f68d41f6a1c 100644 --- a/intern/audaspace/OpenAL/AUD_OpenALDevice.cpp +++ b/intern/audaspace/OpenAL/AUD_OpenALDevice.cpp @@ -767,7 +767,7 @@ bool AUD_OpenALDevice::AUD_OpenALHandle::setConeVolumeOuter(float volume) /**************************** Threading Code **********************************/ /******************************************************************************/ -void* AUD_openalRunThread(void* device) +static void *AUD_openalRunThread(void *device) { AUD_OpenALDevice* dev = (AUD_OpenALDevice*)device; dev->updateStreams(); @@ -993,7 +993,7 @@ AUD_OpenALDevice::AUD_OpenALDevice(AUD_DeviceSpecs specs, int buffersize) AUD_THROW(AUD_ERROR_OPENAL, open_error); // at least try to set the frequency - ALCint attribs[] = { ALC_FREQUENCY, specs.rate, 0 }; + ALCint attribs[] = { ALC_FREQUENCY, (ALCint)specs.rate, 0 }; ALCint* attributes = attribs; if(specs.rate == AUD_RATE_INVALID) attributes = NULL; -- cgit v1.2.3