Skip to content

Commit

Permalink
Fixed compiler warning on Mac OS X.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Jun 16, 2010
1 parent bc33870 commit e6bf186
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions platform_unix.c
Expand Up @@ -1061,8 +1061,9 @@ static int runScriptString(const char *str, boolean devnull, const char **_argv)

int MojoPlatform_runScript(const char *script, boolean devnull, const char **argv)
{
#if !PLATFORM_MACOSX && !PLATFORM_BEOS
int retval = 127;

#if !PLATFORM_MACOSX && !PLATFORM_BEOS
char *str = NULL;
MojoInput *in = MojoInput_newFromArchivePath(GBaseArchive, script);
if (in != NULL)
Expand All @@ -1087,10 +1088,11 @@ int MojoPlatform_runScript(const char *script, boolean devnull, const char **arg
retval = runScriptString(str, devnull, argv);

free(str);
return retval;
#else
STUBBED("runScript");
#endif

return retval;
} // runScript


Expand Down

0 comments on commit e6bf186

Please sign in to comment.