From f0ac760c1341a40ebb9fda45410b67b1a8e871db Mon Sep 17 00:00:00 2001 From: Alexander Bluhm Date: Thu, 24 Apr 2014 09:05:11 +0000 Subject: The switch statement given/when was introduced in Perl 5.10 and got experimental in Perl 5.18. So we see warnings in the tests. given is experimental at funcs.pl line 62. when is experimental at funcs.pl line 63. Just suppress this type of warnings for now. If Perl will disable smart match, the simple regression code still works. If they will choose to remove given/when, we can fix it later. Discussed with and OK andre@ afresh1@ --- regress/sys/kern/sosplice/funcs.pl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'regress/sys') diff --git a/regress/sys/kern/sosplice/funcs.pl b/regress/sys/kern/sosplice/funcs.pl index 39cfd35e315..19c68b95e55 100644 --- a/regress/sys/kern/sosplice/funcs.pl +++ b/regress/sys/kern/sosplice/funcs.pl @@ -1,4 +1,4 @@ -# $OpenBSD: funcs.pl,v 1.5 2013/01/17 17:58:28 bluhm Exp $ +# $OpenBSD: funcs.pl,v 1.6 2014/04/24 09:05:10 bluhm Exp $ # Copyright (c) 2010-2013 Alexander Bluhm # @@ -16,6 +16,7 @@ use strict; use warnings; +no warnings 'experimental::smartmatch'; use feature 'switch'; use Errno; use Digest::MD5; -- cgit v1.2.3