Fix warnings.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@5729 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2020-07-14 01:16:20 +00:00
parent 6bea300f30
commit 457b7e5f58
3 changed files with 8 additions and 4 deletions

View File

@ -1069,7 +1069,7 @@ void Sys_CloseTerminal(void)
#define SYS_CLIPBOARD_SIZE 256 #define SYS_CLIPBOARD_SIZE 256
static char clipboard_buffer[SYS_CLIPBOARD_SIZE] = {0}; static char clipboard_buffer[SYS_CLIPBOARD_SIZE] = {0};
void Sys_Clipboard_PasteText(clipboardtype_t cbt, void (*callback)(void *cb, char *utf8), void *ctx) void Sys_Clipboard_PasteText(clipboardtype_t cbt, void (*callback)(void *cb, const char *utf8), void *ctx)
{ {
callback(ctx, clipboard_buffer); callback(ctx, clipboard_buffer);
} }

View File

@ -71,7 +71,9 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#define NO_JPEG #define NO_JPEG
#define NO_OGG #define NO_OGG
#define NO_ZLIB #define NO_ZLIB
#define NO_FREETYPE #ifndef NO_FREETYPE
#define NO_FREETYPE
#endif
#endif #endif
#ifdef D3DQUAKE #ifdef D3DQUAKE
@ -337,7 +339,9 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#ifdef ANDROID #ifdef ANDROID
#define GLESONLY //should reduce the conditions a little #define GLESONLY //should reduce the conditions a little
// #undef HEADLESSQUAKE // #undef HEADLESSQUAKE
#define NO_FREETYPE #ifndef NO_FREETYPE
#define NO_FREETYPE
#endif
#define NO_OPENAL #define NO_OPENAL
#endif #endif
#if defined(NACL) #if defined(NACL)

View File

@ -248,7 +248,7 @@ qboolean Sys_RunInstaller(void)
#define SYS_CLIPBOARD_SIZE 256 #define SYS_CLIPBOARD_SIZE 256
static char *clipboard_buffer; static char *clipboard_buffer;
void Sys_Clipboard_PasteText(clipboardtype_t cbt, void (*callback)(void *cb, char *utf8), void *ctx) void Sys_Clipboard_PasteText(clipboardtype_t cbt, void (*callback)(void *cb, const char *utf8), void *ctx)
{ {
callback(ctx, clipboard_buffer); callback(ctx, clipboard_buffer);
} }