From: Joey Hess Date: Tue, 21 Oct 2008 21:03:08 +0000 (-0400) Subject: disable warnings when redefining functions X-Git-Tag: 2.68~115 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=327adadf0443db5d240253f375e72657b6a88cfa;p=ikiwiki.git disable warnings when redefining functions --- 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; } #}}}