zsh-workers
 help / color / mirror / code / Atom feed
* PATCH: unused variable
@ 2002-06-05 14:58 Peter Stephenson
  0 siblings, 0 replies; 2+ messages in thread
From: Peter Stephenson @ 2002-06-05 14:58 UTC (permalink / raw)
  To: Zsh hackers list

I've had this minor tweak to silence the compiler lying around for some
time now.

Index: Src/builtin.c
===================================================================
RCS file: /cvsroot/zsh/zsh/Src/builtin.c,v
retrieving revision 1.73
diff -u -r1.73 builtin.c
--- Src/builtin.c	24 Mar 2002 07:56:42 -0000	1.73
+++ Src/builtin.c	5 Jun 2002 14:52:56 -0000
@@ -2914,7 +2914,10 @@
     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;
     
-- 
Peter Stephenson <pws@csr.com>                  Software Engineer
CSR Ltd., Science Park, Milton Road,
Cambridge, CB4 0WH, UK                          Tel: +44 (0)1223 392070


**********************************************************************
The information transmitted is intended only for the person or
entity to which it is addressed and may contain confidential 
and/or privileged material. 
Any review, retransmission, dissemination or other use of, or
taking of any action in reliance upon, this information by 
persons or entities other than the intended recipient is 
prohibited.  
If you received this in error, please contact the sender and 
delete the material from any computer.
**********************************************************************


^ permalink raw reply	[flat|nested] 2+ messages in thread

* PATCH: unused variable
@ 1998-12-14 20:15 Phil Pennock
  0 siblings, 0 replies; 2+ messages in thread
From: Phil Pennock @ 1998-12-14 20:15 UTC (permalink / raw)
  To: Zsh Development Workers

Compilation of glob.c gave a warning that the variable 'j' on line 1950
was unused.  Checking the func, this is not dependent upon the
preprocessor.  Quick-fix noddy patch.

--- Src/glob.c.old	Fri Dec 11 16:02:31 1998
+++ Src/glob.c	Mon Dec 14 20:12:26 1998
@@ -1947,7 +1947,7 @@
 {
     Comp c;
     char *s = *sp, *t, *start, sav;
-    int i, j, l = strlen(*sp), matched;
+    int i, l = strlen(*sp), matched;
 
     MUSTUSEHEAP("getmatch");	/* presumably covered by prefork() test */
     repllist = NULL;

-- 
--> Phil Pennock ; GAT d- s+:+ a22 C++(++++) UL++++/I+++/S+++/H+ P++@ L+++
E-@ W(+) N>++ o !K w--- O>+ M V !PS PE Y+ PGP+ t-- 5++ X+ R !tv b++>+++ DI+ D+
G+ e+ h* r y?


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-06-05 14:59 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-06-05 14:58 PATCH: unused variable Peter Stephenson
  -- strict thread matches above, loose matches on Subject: below --
1998-12-14 20:15 Phil Pennock

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).