You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by da...@apache.org on 2015/03/04 22:06:30 UTC

svn commit: r1664148 - /subversion/trunk/tools/dist/backport.pl

Author: danielsh
Date: Wed Mar  4 21:06:30 2015
New Revision: 1664148

URL: http://svn.apache.org/r1664148
Log:
Follow-up to r1663842:

* tools/dist/backport.pl: Unbreak compilation on Perl v5.16 and older.

Modified:
    subversion/trunk/tools/dist/backport.pl

Modified: subversion/trunk/tools/dist/backport.pl
URL: http://svn.apache.org/viewvc/subversion/trunk/tools/dist/backport.pl?rev=1664148&r1=1664147&r2=1664148&view=diff
==============================================================================
--- subversion/trunk/tools/dist/backport.pl (original)
+++ subversion/trunk/tools/dist/backport.pl Wed Mar  4 21:06:30 2015
@@ -11,8 +11,10 @@ use v5.10.0; # needed for $^V
 #
 # As of Perl v5.20.1, the semantics of given/when provided by Perl are
 # compatible with those expected by the script, so disable the warning for
-# those Perls.
-no if $^V le v5.20.1, warnings => 'experimental::smartmatch';
+# those Perls.  But don't try to disable the the warning category on Perls
+# that don't know that category, since that breaks compilation.
+no if v5.17.0 le $^V and $^V le v5.20.1,
+   warnings => 'experimental::smartmatch';
 
 # Licensed to the Apache Software Foundation (ASF) under one
 # or more contributor license agreements.  See the NOTICE file