Remove paperkey as this is included in main portage tree
[portage-overlay.git] / perl-core / Math-BigInt / files / Math-BigInt-1.997.0_suppress_overload_warning.patch
1 diff -u Math-BigInt-1.997/lib/Math/BigInt.pm Math-BigInt-1.997-r1/lib/Math/BigInt.pm
2 --- Math-BigInt-1.997/lib/Math/BigInt.pm        2011-09-03 02:26:41.000000000 -0400
3 +++ Math-BigInt-1.997-r1/lib/Math/BigInt.pm     2012-07-17 20:32:26.630203065 -0400
4 @@ -40,6 +40,9 @@
5  # Thus inheritance of overload operators becomes possible and transparent for
6  # our subclasses without the need to repeat the entire overload section there.
7  
8 +# https://github.com/ilmari/perl/commit/5e0688b6067afdfb59fdfa9923e658ed40c9f246
9 +# We register ops that are not registerable yet, so suppress warnings
10 +{ no warnings;
11  use overload
12  '='     =>      sub { $_[0]->copy(); },
13  
14 @@ -151,6 +154,7 @@
15  '""' => sub { $_[0]->bstr(); },
16  '0+' => sub { $_[0]->numify(); }
17  ;
18 +} # no warnings scope
19  
20  ##############################################################################
21  # global constants, flags and accessory