- GCC warning removal.

* This may or may not be a problem, but GCC warned that FStateDefinitions::
    AddStateDefines() does not initialize def.FStateDefine::DefineFlags, so
    I fixed that.


SVN r1262 (trunk)
This commit is contained in:
Randy Heit 2008-10-14 03:21:53 +00:00
parent 8d4912f4af
commit 738e8ca7ad
6 changed files with 8 additions and 3 deletions

View file

@ -1,4 +1,7 @@
October 13, 2008 October 13, 2008
- This may or may not be a problem, but GCC warned that FStateDefinitions::
AddStateDefines() does not initialize def.FStateDefine::DefineFlags, so
I fixed that.
- Fixed: The three-argument version of AActor::FindState() initialized a - Fixed: The three-argument version of AActor::FindState() initialized a
two-entry array for passing to the main FindState() routine, but did two-entry array for passing to the main FindState() routine, but did
not actually pass it, passing the original primary label instead. not actually pass it, passing the original primary label instead.

View file

@ -30,6 +30,7 @@ if( WIN32 )
set( FMOD_SEARCH_PATHS set( FMOD_SEARCH_PATHS
"C:/Program Files/FMOD SoundSystem/FMOD Programmers API ${WIN_TYPE}/api" "C:/Program Files/FMOD SoundSystem/FMOD Programmers API ${WIN_TYPE}/api"
"C:/Program Files (x86)/FMOD SoundSystem/FMOD Programmers API ${WIN_TYPE}/api" "C:/Program Files (x86)/FMOD SoundSystem/FMOD Programmers API ${WIN_TYPE}/api"
"E:/Programs/Dev/FMOD/FMOD Programmers API ${WIN_TYPE}/api"
"E:/Program Files (x86)/FMOD SoundSystem/FMOD Programmers API ${WIN_TYPE}/api" ) "E:/Program Files (x86)/FMOD SoundSystem/FMOD Programmers API ${WIN_TYPE}/api" )
set( FMOD_INC_PATH_SUFFIXES PATH_SUFFIXES inc ) set( FMOD_INC_PATH_SUFFIXES PATH_SUFFIXES inc )
set( FMOD_LIB_PATH_SUFFIXES PATH_SUFFIXES lib ) set( FMOD_LIB_PATH_SUFFIXES PATH_SUFFIXES lib )

View file

@ -582,6 +582,7 @@ void FStateDefinitions::AddStateDefines(const FStateLabels *list)
def.Label = list->Labels[i].Label; def.Label = list->Labels[i].Label;
def.State = list->Labels[i].State; def.State = list->Labels[i].State;
def.DefineFlags = SDF_STATE;
StateLabels.Push(def); StateLabels.Push(def);
} }
} }

View file

@ -103,7 +103,7 @@ namespace FMOD
FMOD_RESULT getPluginHandle (FMOD_PLUGINTYPE plugintype, int index, unsigned int *handle) { return FMOD_System_GetPluginHandle(this, plugintype, index, handle); } FMOD_RESULT getPluginHandle (FMOD_PLUGINTYPE plugintype, int index, unsigned int *handle) { return FMOD_System_GetPluginHandle(this, plugintype, index, handle); }
FMOD_RESULT getPluginInfo (unsigned int handle, FMOD_PLUGINTYPE *plugintype, char *name, int namelen, unsigned int *version) { return FMOD_System_GetPluginInfo(this, handle, plugintype, name, namelen, version); } FMOD_RESULT getPluginInfo (unsigned int handle, FMOD_PLUGINTYPE *plugintype, char *name, int namelen, unsigned int *version) { return FMOD_System_GetPluginInfo(this, handle, plugintype, name, namelen, version); }
FMOD_RESULT setOutputByPlugin (unsigned int handle) { return FMOD_System_SetOutputByPlugin(this, handle); } FMOD_RESULT setOutputByPlugin (unsigned int handle) { return FMOD_System_SetOutputByPlugin(this, handle); }
FMOD_RESULT getOutputByPlugin (unsigned int handle) { return FMOD_System_GetOutputByPlugin(this, handle); } FMOD_RESULT getOutputByPlugin (unsigned int *handle) { return FMOD_System_GetOutputByPlugin(this, handle); }
FMOD_RESULT createCodec (FMOD_CODEC_DESCRIPTION *description, unsigned int priority = 0) { return FMOD_System_CreateCodec(this, description, priority); } FMOD_RESULT createCodec (FMOD_CODEC_DESCRIPTION *description, unsigned int priority = 0) { return FMOD_System_CreateCodec(this, description, priority); }
// Init/Close // Init/Close

View file

@ -858,7 +858,7 @@ DEFINE_PROPERTY(renderstyle, S, Actor)
if (!strnicmp(str, "style_", 6)) str+=6; if (!strnicmp(str, "style_", 6)) str+=6;
int style = MatchString(str, renderstyles); int style = MatchString(str, renderstyles);
if (style < 0) I_Error("Unknown render style '%s'"); if (style < 0) I_Error("Unknown render style '%s'", str);
defaults->RenderStyle = LegacyRenderStyles[renderstyle_values[style]]; defaults->RenderStyle = LegacyRenderStyles[renderstyle_values[style]];
} }

View file

@ -1167,7 +1167,7 @@ void DDrawFB::Update ()
} }
BlitCycles.Unclock(); BlitCycles.Unclock();
LOG1 ("cycles = %.1 ms\n", BlitCycles.TimeMS()); LOG1 ("cycles = %.1f ms\n", BlitCycles.TimeMS());
Buffer = NULL; Buffer = NULL;
LockCount = 0; LockCount = 0;