summary refs log tree commit diff
path: root/Functions
diff options
context:
space:
mode:
authorFrank Terbeck <ft@bewatermyfriend.org>2015-12-30 14:58:32 +0100
committerFrank Terbeck <ft@bewatermyfriend.org>2015-12-30 15:23:08 +0100
commitdab6e7c2319c0aadb39eb9cce677e0a35da8314d (patch)
treed30173e732b367a29055db25e8b3b1191a389311 /Functions
parent5f3e47ca5e8b98480d73b99a51606dda8be9cb32 (diff)
downloadzsh-dab6e7c2319c0aadb39eb9cce677e0a35da8314d.tar.gz
zsh-dab6e7c2319c0aadb39eb9cce677e0a35da8314d.tar.xz
zsh-dab6e7c2319c0aadb39eb9cce677e0a35da8314d.zip
37451: vcs_info: Declare "msgs" in early context
The parameter *is* being declared with the redefinition of the
function, but not in its initial form, which gets you a warning
about the parameter being defined globally. This fixes it.
Diffstat (limited to 'Functions')
-rw-r--r--Functions/VCS_Info/vcs_info2
1 files changed, 1 insertions, 1 deletions
diff --git a/Functions/VCS_Info/vcs_info b/Functions/VCS_Info/vcs_info
index 628dde9b1..f13f6b501 100644
--- a/Functions/VCS_Info/vcs_info
+++ b/Functions/VCS_Info/vcs_info
@@ -10,7 +10,7 @@
 
 setopt localoptions noksharrays extendedglob NO_shwordsplit
 local file func sys
-local -a static_functions
+local -a static_functions msgs
 local -i maxexports
 
 static_functions=(