mirror of
https://github.com/libretro/RetroArch
synced 2025-02-28 12:40:23 +00:00
Shut up some more warnings.
This commit is contained in:
parent
07de6af33e
commit
dbccc4f4f0
2
deps/zlib/zutil.c
vendored
2
deps/zlib/zutil.c
vendored
@ -10,7 +10,7 @@
|
|||||||
# include "gzguts.h"
|
# include "gzguts.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
char * const z_errmsg[10] = {
|
char z_errmsg[10][21] = {
|
||||||
"need dictionary", /* Z_NEED_DICT 2 */
|
"need dictionary", /* Z_NEED_DICT 2 */
|
||||||
"stream end", /* Z_STREAM_END 1 */
|
"stream end", /* Z_STREAM_END 1 */
|
||||||
"", /* Z_OK 0 */
|
"", /* Z_OK 0 */
|
||||||
|
@ -526,7 +526,7 @@ static bool gfx_ctx_wgl_set_video_mode(void *data,
|
|||||||
{
|
{
|
||||||
if (!fullscreen && settings->ui.menubar_enable)
|
if (!fullscreen && settings->ui.menubar_enable)
|
||||||
{
|
{
|
||||||
RECT rc_temp = {0, 0, height, 0x7FFF};
|
RECT rc_temp = {0, 0, (LONG)height, 0x7FFF};
|
||||||
SetMenu(g_hwnd, LoadMenu(GetModuleHandle(NULL),MAKEINTRESOURCE(IDR_MENU)));
|
SetMenu(g_hwnd, LoadMenu(GetModuleHandle(NULL),MAKEINTRESOURCE(IDR_MENU)));
|
||||||
SendMessage(g_hwnd, WM_NCCALCSIZE, FALSE, (LPARAM)&rc_temp);
|
SendMessage(g_hwnd, WM_NCCALCSIZE, FALSE, (LPARAM)&rc_temp);
|
||||||
g_resize_height = height += rc_temp.top + rect.top;
|
g_resize_height = height += rc_temp.top + rect.top;
|
||||||
|
@ -49,8 +49,9 @@ typedef unsigned short ush;
|
|||||||
typedef ush FAR ushf;
|
typedef ush FAR ushf;
|
||||||
typedef unsigned long ulg;
|
typedef unsigned long ulg;
|
||||||
|
|
||||||
extern char * const z_errmsg[10]; /* indexed by 2-zlib_error */
|
extern char z_errmsg[10][21]; /* indexed by 2-zlib_error */
|
||||||
/* (size given to avoid silly warnings with Visual C++) */
|
/* (array size given to avoid silly warnings with Visual C++) */
|
||||||
|
/* (array entry size given to avoid silly string cast warnings) */
|
||||||
|
|
||||||
#define ERR_MSG(err) z_errmsg[Z_NEED_DICT-(err)]
|
#define ERR_MSG(err) z_errmsg[Z_NEED_DICT-(err)]
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user