From dab6e7c2319c0aadb39eb9cce677e0a35da8314d Mon Sep 17 00:00:00 2001 From: Frank Terbeck Date: Wed, 30 Dec 2015 14:58:32 +0100 Subject: [PATCH] 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. --- ChangeLog | 5 +++++ Functions/VCS_Info/vcs_info | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index b46d7eda8..ef80f96fc 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2015-12-30 Frank Terbeck + + * 37451: Functions/VCS_Info/vcs_info: vcs_info: Declare "msgs" in + early context + 2015-12-27 Axel Beckert * 37438: Completion/Debian/Command/_aptitude: Also parse --help/-h 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=(