summary refs log tree commit diff
diff options
context:
space:
mode:
-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;