From 7811d7209a9ebb207979269c764831ef818521b5 Mon Sep 17 00:00:00 2001 From: Kent Mein Date: Wed, 27 Apr 2005 11:52:50 +0000 Subject: Bunch of gcc 4.0 warning fixes. source/creator/creator.c changed ifdef's around fpe_handler to match when its actually used. intern/SoundSystem/intern/SND_AudioDevice.cpp Changed: SND_SoundObject* oldobject = oldobject = pIdObject->GetSoundObject(); to: SND_SoundObject* oldobject = pIdObject->GetSoundObject(); intern/SoundSystem/openal/SND_OpenALDevice.cpp removed unused var. source/blender/blenkernel/intern/mball.c initalized a couple of vars that might have been used uninitalized. The rest were changing types to match, most of them were something like was short * should have been unsigned short *. Kent --- intern/SoundSystem/intern/SND_AudioDevice.cpp | 6 +----- intern/SoundSystem/openal/SND_OpenALDevice.cpp | 6 +----- 2 files changed, 2 insertions(+), 10 deletions(-) (limited to 'intern') diff --git a/intern/SoundSystem/intern/SND_AudioDevice.cpp b/intern/SoundSystem/intern/SND_AudioDevice.cpp index 9cb2202425c..828edaed4b4 100644 --- a/intern/SoundSystem/intern/SND_AudioDevice.cpp +++ b/intern/SoundSystem/intern/SND_AudioDevice.cpp @@ -32,10 +32,6 @@ #include "SND_AudioDevice.h" #include "SND_SoundObject.h" -#ifdef HAVE_CONFIG_H -#include -#endif - #ifdef WIN32 // This warning tells us about truncation of __long__ stl-generated names. // It can occasionally cause DevStudio to have internal compiler warnings. @@ -141,7 +137,7 @@ bool SND_AudioDevice::GetNewId(SND_SoundObject* pObject) if (!OutOfIds) { - SND_SoundObject* oldobject = oldobject = pIdObject->GetSoundObject(); + SND_SoundObject* oldobject = pIdObject->GetSoundObject(); // revoke the old object if present if (oldobject) diff --git a/intern/SoundSystem/openal/SND_OpenALDevice.cpp b/intern/SoundSystem/openal/SND_OpenALDevice.cpp index 66950e6ef92..fdad75db767 100644 --- a/intern/SoundSystem/openal/SND_OpenALDevice.cpp +++ b/intern/SoundSystem/openal/SND_OpenALDevice.cpp @@ -31,10 +31,6 @@ * SND_OpenALDevice derived from SND_IAudioDevice */ -#ifdef HAVE_CONFIG_H -#include -#endif - #ifdef WIN32 #pragma warning (disable:4786) // get rid of stupid stl-visual compiler debug warning #endif //WIN32 @@ -402,7 +398,7 @@ SND_WaveSlot* SND_OpenALDevice::LoadSample(const STR_String& name, #ifdef OUDE_OPENAL unsigned int samplerate, numberofsamples; // openal_2.12 #else - int samplerate, numberofsamples, frequency; // openal_2.14+ + int samplerate, numberofsamples; // openal_2.14+ #endif /* Give them some safe defaults just incase */ -- cgit v1.2.3