From efd3baf2a2dd09c162c37ad1d6ea71a45620fb7f Mon Sep 17 00:00:00 2001 From: "Barton E. Schaefer" Date: Sat, 10 Dec 2016 19:13:53 -0800 Subject: 40134: silence spurious compiler warnings. --- ChangeLog | 5 +++++ Src/Zle/compmatch.c | 2 +- Src/builtin.c | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 5e217deed..91a8b507e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2016-12-10 Barton E. Schaefer + + * 40134: Src/builtin.c, Src/Zle/compmatch.c: silence spurious + compiler warnings. + 2016-12-10 Daniel Shahaf * 40139: Test/Y03arguments.ztst: tests: Convert comments to diff --git a/Src/Zle/compmatch.c b/Src/Zle/compmatch.c index f82f00e1d..aedf463fc 100644 --- a/Src/Zle/compmatch.c +++ b/Src/Zle/compmatch.c @@ -674,7 +674,7 @@ match_str(char *l, char *w, Brinfo *bpp, int bc, int *rwlp, * * operation. Similar to savw. */ - char savl; + char savl = 0; /* * The anchor on this end. */ diff --git a/Src/builtin.c b/Src/builtin.c index e641a97a1..65e0cb10b 100644 --- a/Src/builtin.c +++ b/Src/builtin.c @@ -4092,7 +4092,7 @@ bin_print(char *name, char **args, Options ops, int func) char *start, *endptr, *c, *d, *flag, *buf = NULL, spec[14], *fmt = NULL; char **first, **argp, *curarg, *flagch = "'0+- #", save = '\0', nullstr = '\0'; size_t rcount = 0, count = 0; - size_t *cursplit, *splits = 0; + size_t *cursplit = 0, *splits = 0; FILE *fout = stdout; #ifdef HAVE_OPEN_MEMSTREAM size_t mcount; -- cgit 1.4.1