1
0
mirror of https://github.com/libretro/RetroArch synced 2024-07-08 12:15:49 +00:00

Remove warnings during clang++ builds

This commit is contained in:
Higor Eurípedes 2015-03-16 14:26:29 -03:00
parent d2fb9a5991
commit 718ca11a43
3 changed files with 6 additions and 6 deletions

View File

@ -148,7 +148,7 @@ static SRes Utf16_To_Char(CBuf *buf, const uint16_t *s, int fileMode)
}
}
#else
fileMode = fileMode;
(void)fileMode;
return Utf16_To_Utf8Buf(buf, s, len);
#endif
}

8
deps/7zip/7zAlloc.c vendored
View File

@ -5,7 +5,7 @@
void *SzAlloc(void *p, size_t size)
{
p = p;
(void)p;
if (size == 0)
return 0;
return malloc(size);
@ -13,13 +13,13 @@ void *SzAlloc(void *p, size_t size)
void SzFree(void *p, void *address)
{
p = p;
(void)p;
free(address);
}
void *SzAllocTemp(void *p, size_t size)
{
p = p;
(void)p;
if (size == 0)
return 0;
return malloc(size);
@ -27,6 +27,6 @@ void *SzAllocTemp(void *p, size_t size)
void SzFreeTemp(void *p, void *address)
{
p = p;
(void)p;
free(address);
}

View File

@ -68,7 +68,7 @@ static bool sdl_key_pressed(int key)
#else
keymap = SDL_GetKeyState(&num_keys);
#endif
if (sym < 0 || sym >= (unsigned)num_keys)
if (sym >= (unsigned)num_keys)
return false;
return keymap[sym];