diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | Src/params.c | 16 |
2 files changed, 7 insertions, 14 deletions
diff --git a/ChangeLog b/ChangeLog index fbfc6c127..cc7d1fdd4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2016-01-15 Peter Stephenson <p.stephenson@samsung.com> + + * 37512: Src/params.c: overeager WARN_CREATE_GLOBAL with + strftime. + 2016-01-15 Daniel Shahaf <d.s@daniel.shahaf.name> * unposted: Src/utils.c: Extend docstring of callhookfunc(). diff --git a/Src/params.c b/Src/params.c index 054fb1f54..b2e889738 100644 --- a/Src/params.c +++ b/Src/params.c @@ -2705,30 +2705,18 @@ static void check_warn_create(Param pm, const char *pmtype) { Funcstack i; - const char *name; if (pm->level != 0 || (pm->node.flags & PM_SPECIAL)) return; - name = NULL; for (i = funcstack; i; i = i->prev) { if (i->tp == FS_FUNC) { DPUTS(!i->name, "funcstack entry with no name"); - name = i->name; + zwarn("%s parameter %s created globally in function %s", + pmtype, pm->node.nam, i->name); break; } } - - if (name) - { - zwarn("%s parameter %s created globally in function %s", - pmtype, pm->node.nam, name); - } - else - { - zwarn("%s parameter %s created globally in function", - pmtype, pm->node.nam); - } } /**/ |