1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-01-22 12:31:26 +01:00

Fix some compiler warnings in Zle

This commit is contained in:
Peter Stephenson 2014-09-30 09:58:19 +01:00
parent 32473f59a3
commit 15222bcdcb
3 changed files with 7 additions and 3 deletions

View file

@ -1,3 +1,8 @@
2014-09-30 Peter Stephenson <p.stephenson@samsung.com>
* 33293: Src/Zle/compctl.c, Src/Zle/zle_refresh.c: fix warnings
from swish new compilers with a contemporary outlook.
2014-09-29 Peter Stephenson <p.w.stephenson@ntlworld.com>
* 33286: Src/exec.c, Test/A04redirect.ztst: handle redirections

View file

@ -3416,7 +3416,7 @@ makecomplistflags(Compctl cc, char *s, int incmd, int compadd)
*npp++ = tp;
pp++;
}
*npp = '\0';
*npp = NULL;
}
}
if (!dirs) {

View file

@ -258,7 +258,6 @@ static const REFRESH_ELEMENT zr_cr = { ZWC('\r'), 0 };
static const REFRESH_ELEMENT zr_dt = { ZWC('.'), 0 };
static const REFRESH_ELEMENT zr_nl = { ZWC('\n'), 0 };
static const REFRESH_ELEMENT zr_sp = { ZWC(' '), 0 };
static const REFRESH_ELEMENT zr_ht = { ZWC('\t'), 0 };
static const REFRESH_ELEMENT zr_zr = { ZWC('\0'), 0 };
/*
@ -429,7 +428,7 @@ get_region_highlight(UNUSED(Param pm))
digbuf1, digbuf2);
(void)output_highlight(rhp->atr, *arrp + strlen(*arrp));
}
*arrp = '\0';
*arrp = NULL;
return retarr;
}