From ed872bd8ed6c6a10096b9946614715a03da76485 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sat, 22 Aug 2015 08:07:57 +0000 Subject: view: prevent 'once' warnings for sub ref Perl seems to incorrectly warn for this, workaround it. --- lib/PublicInbox/View.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/PublicInbox/View.pm b/lib/PublicInbox/View.pm index ab2720ba..4e015070 100644 --- a/lib/PublicInbox/View.pm +++ b/lib/PublicInbox/View.pm @@ -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 } -- cgit v1.2.3-24-ge0c7