aboutsummaryrefslogtreecommitdiff
path: root/IkiWiki/Plugin/highlight.pm
diff options
context:
space:
mode:
authorSimon McVittie <smcv@debian.org>2016-01-18 08:45:18 +0000
committerSimon McVittie <smcv@debian.org>2016-01-19 11:24:18 +0000
commit317d19842c40b5056989ad0ce22b632df9153444 (patch)
treeb3db7af611c184d375c3b709528302c9d93c8263 /IkiWiki/Plugin/highlight.pm
parente33b4678c7da6d2dec293ca3a3f5510681668898 (diff)
downloadikiwiki-317d19842c40b5056989ad0ce22b632df9153444.tar
ikiwiki-317d19842c40b5056989ad0ce22b632df9153444.tar.gz
Silence "used only once: possible typo" warnings for variables that are part of modules' APIs
Diffstat (limited to 'IkiWiki/Plugin/highlight.pm')
-rw-r--r--IkiWiki/Plugin/highlight.pm2
1 files changed, 2 insertions, 0 deletions
diff --git a/IkiWiki/Plugin/highlight.pm b/IkiWiki/Plugin/highlight.pm
index ce919748a..f6908921e 100644
--- a/IkiWiki/Plugin/highlight.pm
+++ b/IkiWiki/Plugin/highlight.pm
@@ -201,7 +201,9 @@ sub highlight ($$) {
my $gen;
if (! exists $highlighters{$langfile}) {
+ no warnings 'once';
$gen = highlight::CodeGenerator::getInstance($highlight::XHTML);
+ use warnings;
$gen->setFragmentCode(1); # generate html fragment
$gen->setHTMLEnclosePreTag(1); # include stylish <pre>
if ($data_dir){