summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoey Hess <joey@kodama.kitenet.net>2008-10-21 17:03:08 -0400
committerJoey Hess <joey@kodama.kitenet.net>2008-10-21 17:03:08 -0400
commit327adadf0443db5d240253f375e72657b6a88cfa (patch)
treea89f894a17301bbc3743e5d58e354d3cf9d0ee3a
parentd66fc7acf17a094759fcea32617fa441e629ae37 (diff)
disable warnings when redefining functions
-rw-r--r--IkiWiki/Plugin/external.pm2
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;
} #}}}