From 327adadf0443db5d240253f375e72657b6a88cfa Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Tue, 21 Oct 2008 17:03:08 -0400 Subject: disable warnings when redefining functions --- IkiWiki/Plugin/external.pm | 2 ++ 1 file changed, 2 insertions(+) (limited to 'IkiWiki/Plugin') diff --git a/IkiWiki/Plugin/external.pm b/IkiWiki/Plugin/external.pm index ba6c7d8b9..287e118f1 100644 --- a/IkiWiki/Plugin/external.pm +++ b/IkiWiki/Plugin/external.pm @@ -202,7 +202,9 @@ sub inject ($@) { #{{{ my $sub = sub { IkiWiki::Plugin::external::rpc_call($plugin, $params{call}, @_) }; + no warnings; eval qq{*$params{name}=\$sub}; + use warnings; memoize($params{name}) if $params{memoize}; return 1; } #}}} -- cgit v1.2.3