]> Sergey Matveev's repositories - public-inbox.git/commitdiff
view: prevent 'once' warnings for sub ref
authorEric Wong <e@80x24.org>
Sat, 22 Aug 2015 08:07:57 +0000 (08:07 +0000)
committerEric Wong <e@80x24.org>
Sat, 22 Aug 2015 08:07:57 +0000 (08:07 +0000)
Perl seems to incorrectly warn for this, workaround it.

lib/PublicInbox/View.pm

index ab2720baf024af3b8186d0084364aa5d76265a8a..4e0150705754ccdc37927142a26ed8a015332bb1 100644 (file)
@@ -579,6 +579,7 @@ sub thread_results {
        require PublicInbox::Thread;
        my $th = PublicInbox::Thread->new(@$msgs);
        $th->thread;
+       no warnings 'once';
        $th->order(*PublicInbox::Thread::sort_ts);
        $th
 }