about summary refs log tree commit diff
diff options
context:
space:
mode:
authorPeter Stephenson <pws@zsh.org>2015-11-20 11:55:07 +0000
committerPeter Stephenson <pws@zsh.org>2015-11-20 11:55:07 +0000
commit2737ae4a669c37638bc377e85cce9d50281b3bc2 (patch)
tree3958fe054957d320ad6172b0cc70955e0861ea15
parent72a67716aca9896cb75a2b92457fdaed060d8e9e (diff)
downloadzsh-2737ae4a669c37638bc377e85cce9d50281b3bc2.tar.gz
zsh-2737ae4a669c37638bc377e85cce9d50281b3bc2.tar.xz
zsh-2737ae4a669c37638bc377e85cce9d50281b3bc2.zip
37168: No WARN_CREATE_GLOBAL on special parameters
-rw-r--r--ChangeLog2
-rw-r--r--Src/params.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 7a507fe00..5ab317e4b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,7 @@
 2015-11-20  Peter Stephenson  <p.stephenson@samsung.com>
 
+	* 37168: Src/params.c: no WARN_CREATE_GLOBAL on special parameters.
+
 	* 20974: Src/builtin.c, Test/D04parameter.ztst: fix bug
 	when scalar value assigned to special array in typeset.
 
diff --git a/Src/params.c b/Src/params.c
index 3ed771e3b..b121bd6ad 100644
--- a/Src/params.c
+++ b/Src/params.c
@@ -2702,7 +2702,7 @@ check_warn_create(Param pm, const char *pmtype)
     Funcstack i;
     const char *name;
 
-    if (pm->level != 0)
+    if (pm->level != 0 || (pm->node.flags & PM_SPECIAL))
 	return;
 
     name = NULL;