about summary refs log tree commit diff
path: root/Src/params.c
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2011-06-19 16:26:10 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2011-06-19 16:26:10 +0000
commit962624e8c343e3968fbb55160b8a14b460400bc0 (patch)
treed3d7441133e679a6dd61d61d5b128379691fa9bf /Src/params.c
parentc31caeb0869803e226cf5ad6669635c2ebafd429 (diff)
downloadzsh-962624e8c343e3968fbb55160b8a14b460400bc0.tar.gz
zsh-962624e8c343e3968fbb55160b8a14b460400bc0.tar.xz
zsh-962624e8c343e3968fbb55160b8a14b460400bc0.zip
29491: remove some variables set but not used
Diffstat (limited to 'Src/params.c')
-rw-r--r--Src/params.c13
1 files changed, 9 insertions, 4 deletions
diff --git a/Src/params.c b/Src/params.c
index a59c51767..8a56766f8 100644
--- a/Src/params.c
+++ b/Src/params.c
@@ -655,7 +655,10 @@ createparamtable(void)
     char **new_environ;
     int  envsize;
 #endif
-    char **envp, **envp2, **sigptr, **t;
+#ifndef USE_SET_UNSET_ENV
+    char **envp;
+#endif
+    char **envp2, **sigptr, **t;
     char buf[50], *str, *iname, *ivalue, *hostnam;
     int  oae = opts[ALLEXPORT];
 #ifdef HAVE_UNAME
@@ -721,7 +724,11 @@ createparamtable(void)
     /* Now incorporate environment variables we are inheriting *
      * into the parameter hash table. Copy them into dynamic   *
      * memory so that we can free them if needed               */
-    for (envp = envp2 = environ; *envp2; envp2++) {
+    for (
+#ifndef USE_SET_UNSET_ENV
+	envp = 
+#endif
+	    envp2 = environ; *envp2; envp2++) {
 	if (split_env_string(*envp2, &iname, &ivalue)) {
 	    if (!idigit(*iname) && isident(iname) && !strchr(iname, '[')) {
 		if ((!(pm = (Param) paramtab->getnode(paramtab, iname)) ||
@@ -993,9 +1000,7 @@ mod_export int
 isident(char *s)
 {
     char *ss;
-    int ne;
 
-    ne = noeval;		/* save the current value of noeval     */
     if (!*s)			/* empty string is definitely not valid */
 	return 0;