summary refs log tree commit diff
diff options
context:
space:
mode:
authorBarton E. Schaefer <schaefer@zsh.org>2016-12-10 19:13:53 -0800
committerBarton E. Schaefer <schaefer@zsh.org>2016-12-10 19:13:53 -0800
commitefd3baf2a2dd09c162c37ad1d6ea71a45620fb7f (patch)
tree3d8e058aa65213e299265d38cf81a5ff7cccf4fe
parent74b7c6b7d6e12c64de0597c9ad6e237507efdd62 (diff)
downloadzsh-efd3baf2a2dd09c162c37ad1d6ea71a45620fb7f.tar.gz
zsh-efd3baf2a2dd09c162c37ad1d6ea71a45620fb7f.tar.xz
zsh-efd3baf2a2dd09c162c37ad1d6ea71a45620fb7f.zip
40134: silence spurious compiler warnings.
-rw-r--r--ChangeLog5
-rw-r--r--Src/Zle/compmatch.c2
-rw-r--r--Src/builtin.c2
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  <schaefer@zsh.org>
+
+	* 40134: Src/builtin.c, Src/Zle/compmatch.c: silence spurious
+	compiler warnings.
+
 2016-12-10  Daniel Shahaf  <d.s@daniel.shahaf.name>
 
 	* 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;