about summary refs log tree commit diff
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2002-06-05 15:03:15 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2002-06-05 15:03:15 +0000
commit682d83503bf54b9bd5f84778efc17f4e5cde350f (patch)
tree46f3bb01c9fefddf6523509d639282d8c6119554
parent5ef61a44b12773eccd5de43acb18118eca09de29 (diff)
downloadzsh-682d83503bf54b9bd5f84778efc17f4e5cde350f.tar.gz
zsh-682d83503bf54b9bd5f84778efc17f4e5cde350f.tar.xz
zsh-682d83503bf54b9bd5f84778efc17f4e5cde350f.zip
17292: shut up compiler if no OPEN_MEMSTREAM
-rw-r--r--ChangeLog2
-rw-r--r--Src/builtin.c5
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index f8927c79d..0c48121e5 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,7 @@
 2002-06-05  Peter Stephenson  <pws@csr.com>
 
+	* 17292: Src/builtin.c: shut up compiler if no OPEN_MEMSTREAM.
+
 	* 17265: Src/exec.c, Src/jobs.c, Src/Modules/clone.c: Make the
 	`jobs' command work in a subshell of a shell with job control by
 	saving the valid bits of the job table.
diff --git a/Src/builtin.c b/Src/builtin.c
index 18e95da24..90681fc3a 100644
--- a/Src/builtin.c
+++ b/Src/builtin.c
@@ -2914,7 +2914,10 @@ bin_print(char *name, char **args, char *ops, int func)
     int flags[5], *len;
     char *start, *endptr, *c, *d, *flag, *buf, spec[11], *fmt = NULL;
     char **first, *curarg, *flagch = "0+- #", save = '\0', nullstr = '\0';
-    size_t rcount, mcount, count = 0;
+    size_t rcount, count = 0;
+#ifdef HAVE_OPEN_MEMSTREAM
+    size_t mcount;
+#endif
     FILE *fout = stdout;
     Histent ent;