mirror of
https://github.com/libretro/RetroArch.git
synced 2025-01-31 05:56:07 +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"
|
||||
#endif
|
||||
|
||||
char * const z_errmsg[10] = {
|
||||
char z_errmsg[10][21] = {
|
||||
"need dictionary", /* Z_NEED_DICT 2 */
|
||||
"stream end", /* Z_STREAM_END 1 */
|
||||
"", /* Z_OK 0 */
|
||||
|
@ -526,7 +526,7 @@ static bool gfx_ctx_wgl_set_video_mode(void *data,
|
||||
{
|
||||
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)));
|
||||
SendMessage(g_hwnd, WM_NCCALCSIZE, FALSE, (LPARAM)&rc_temp);
|
||||
g_resize_height = height += rc_temp.top + rect.top;
|
||||
|
@ -49,8 +49,9 @@ typedef unsigned short ush;
|
||||
typedef ush FAR ushf;
|
||||
typedef unsigned long ulg;
|
||||
|
||||
extern char * const z_errmsg[10]; /* indexed by 2-zlib_error */
|
||||
/* (size given to avoid silly warnings with Visual C++) */
|
||||
extern char z_errmsg[10][21]; /* indexed by 2-zlib_error */
|
||||
/* (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)]
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user