Problem: Build failure with older compiler on MS-Windows.
Solution: Move declaration to start of block.
if (serverid != NULL && !check_restricted() && !check_secure())
{
int timeout = 0;
+# ifdef WIN32
+ /* The server's HWND is encoded in the 'id' parameter */
+ long_u n = 0;
+# endif
if (argvars[1].v_type != VAR_UNKNOWN)
timeout = get_tv_number(&argvars[1]);
# ifdef WIN32
- /* The server's HWND is encoded in the 'id' parameter */
- long_u n = 0;
-
sscanf((char *)serverid, SCANF_HEX_LONG_U, &n);
if (n != 0)
r = serverGetReply((HWND)n, FALSE, TRUE, TRUE, timeout);
size_t len = STRLEN(cmd) + STRLEN(err) + 5;
char_u *msg;
- msg = alloc(len);
+ msg = alloc((unsigned)len);
if (msg != NULL)
vim_snprintf((char *)msg, len, "%s: \"%s\"", err, cmd);
*result = msg;
char *err = _(e_invexprmsg);
size_t len = STRLEN(str) + STRLEN(err) + 5;
- res = alloc(len);
+ res = alloc((unsigned)len);
if (res != NULL)
vim_snprintf((char *)res, len, "%s: \"%s\"", err, str);
reply.dwData = COPYDATA_ERROR_RESULT;
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 494,
/**/
493,
/**/