diff options
author | Joey Hess <joey@kodama.kitenet.net> | 2008-10-21 17:03:08 -0400 |
---|---|---|
committer | Joey Hess <joey@kodama.kitenet.net> | 2008-10-21 17:03:08 -0400 |
commit | 327adadf0443db5d240253f375e72657b6a88cfa (patch) | |
tree | a89f894a17301bbc3743e5d58e354d3cf9d0ee3a | |
parent | d66fc7acf17a094759fcea32617fa441e629ae37 (diff) |
disable warnings when redefining functions
-rw-r--r-- | IkiWiki/Plugin/external.pm | 2 |
1 files changed, 2 insertions, 0 deletions
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; } #}}} |