mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-25 11:10:47 +00:00
iOS: Eliminate some minor warnings.
git-svn-id: https://svn.eduke32.com/eduke32@5558 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
95a70e063d
commit
2beee7056c
5 changed files with 25 additions and 4 deletions
|
@ -10,6 +10,8 @@
|
|||
|
||||
#if TARGET_OS_MAC
|
||||
|
||||
#include "compat.h"
|
||||
|
||||
#import <AppKit/AppKit.h>
|
||||
|
||||
#include "sdl_inc.h"
|
||||
|
@ -76,6 +78,8 @@ static NSString *getApplicationName(void)
|
|||
SDL_Event event;
|
||||
event.type = SDL_QUIT;
|
||||
SDL_PushEvent(&event);
|
||||
|
||||
UNREFERENCED_PARAMETER(sender);
|
||||
}
|
||||
@end
|
||||
|
||||
|
@ -206,6 +210,9 @@ static void CustomApplicationMain (int argc, char **argv)
|
|||
|
||||
[sdlMain release];
|
||||
[pool release];
|
||||
|
||||
UNREFERENCED_PARAMETER(argc);
|
||||
UNREFERENCED_PARAMETER(argv);
|
||||
}
|
||||
|
||||
|
||||
|
@ -254,6 +261,9 @@ static void CustomApplicationMain (int argc, char **argv)
|
|||
SDL_strlcpy(arg, temparg, arglen);
|
||||
gArgv[gArgc++] = arg;
|
||||
gArgv[gArgc] = NULL;
|
||||
|
||||
UNREFERENCED_PARAMETER(theApplication);
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
|
@ -270,6 +280,8 @@ static void CustomApplicationMain (int argc, char **argv)
|
|||
gCalledAppMainline = TRUE;
|
||||
status = SDL_main (gArgc, gArgv);
|
||||
|
||||
UNREFERENCED_PARAMETER(note);
|
||||
|
||||
/* We're done, thank you for playing */
|
||||
exit(status);
|
||||
}
|
||||
|
|
|
@ -372,6 +372,8 @@ static int32_t osdfunc_setrendermode(const osdfuncparm_t *parm)
|
|||
case REND_POLYMER:
|
||||
renderer = "great justice (Polymer)";
|
||||
break;
|
||||
default:
|
||||
EDUKE32_UNREACHABLE_SECTION(break);
|
||||
}
|
||||
|
||||
OSD_Printf("Rendering method changed to %s\n", renderer);
|
||||
|
|
|
@ -202,9 +202,12 @@ int32_t OSD_Exec(const char *szScript)
|
|||
int32_t i, len, err = 0;
|
||||
char *buf = NULL;
|
||||
|
||||
if ((i = kopen4load(szScript, 0)) == -1) err = 1;
|
||||
if (!err && (len = kfilelength(i)) <= 0) err = 2; // blank file
|
||||
if (!err && (buf = (char *)Xmalloc(len + 1)) == NULL) err = 3;
|
||||
if ((i = kopen4load(szScript, 0)) == -1)
|
||||
err = 1;
|
||||
else if ((len = kfilelength(i)) <= 0)
|
||||
err = 2; // blank file
|
||||
else if ((buf = (char *)Xmalloc(len + 1)) == NULL)
|
||||
err = 3;
|
||||
|
||||
if (!err || err == 3)
|
||||
OSD_Printf("Executing \"%s\"\n", szScript);
|
||||
|
|
|
@ -585,7 +585,7 @@ extern int32_t demorec_difftics_cvar, demorec_diffcompress_cvar, demorec_synccom
|
|||
|
||||
int32_t CONFIG_ReadSetup(void)
|
||||
{
|
||||
int32_t dummy, i = 0;
|
||||
int32_t dummy;
|
||||
char commmacro[] = "CommbatMacro# ";
|
||||
char tempbuf[1024];
|
||||
|
||||
|
@ -600,12 +600,14 @@ int32_t CONFIG_ReadSetup(void)
|
|||
ud.config.scripthandle = SCRIPT_Load(setupfilename);
|
||||
else if (SafeFileExists(SETUPFILENAME) && ud.config.scripthandle < 0)
|
||||
{
|
||||
int32_t i;
|
||||
i=wm_ynbox("Import Configuration Settings", "The configuration file \"%s\" was not found. "
|
||||
"Import configuration data from \"%s\"?",setupfilename,SETUPFILENAME);
|
||||
if (i) ud.config.scripthandle = SCRIPT_Load(SETUPFILENAME);
|
||||
}
|
||||
else if (SafeFileExists("duke3d.cfg") && ud.config.scripthandle < 0)
|
||||
{
|
||||
int32_t i;
|
||||
i=wm_ynbox("Import Configuration Settings", "The configuration file \"%s\" was not found. "
|
||||
"Import configuration data from \"duke3d.cfg\"?",setupfilename);
|
||||
if (i) ud.config.scripthandle = SCRIPT_Load("duke3d.cfg");
|
||||
|
|
|
@ -2586,6 +2586,7 @@ int32_t C_AllocQuote(int32_t qnum)
|
|||
return 0;
|
||||
}
|
||||
|
||||
#ifndef EDUKE32_TOUCH_DEVICES
|
||||
static void C_ReplaceQuoteSubstring(const size_t q, char const * const query, char const * const replacement)
|
||||
{
|
||||
size_t querylength = Bstrlen(query);
|
||||
|
@ -2601,6 +2602,7 @@ static void C_ReplaceQuoteSubstring(const size_t q, char const * const query, ch
|
|||
i = MAXQUOTELEN - querylength - 2;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
void C_InitQuotes(void)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue