summaryrefslogtreecommitdiff
path: root/ext/DB_File
diff options
context:
space:
mode:
authorYves Orton <demerphq@gmail.com>2008-01-06 21:43:24 +0000
committerYves Orton <demerphq@gmail.com>2008-01-06 21:43:24 +0000
commitf84167b37281b9fdf1ae6a39e5b09c601c781ffa (patch)
tree4e41249745b7f932ad338e94a3d63b048d590384 /ext/DB_File
parentb7c9370f5c2b1d5f577fed166c849b8a86ced93d (diff)
downloadperl-f84167b37281b9fdf1ae6a39e5b09c601c781ffa.tar.gz
Silence new warning grep in void context warning in various modules and test files, also silence a warning that came from a previous 'dev' version number bump.
p4raw-id: //depot/perl@32883
Diffstat (limited to 'ext/DB_File')
-rw-r--r--ext/DB_File/DB_File.pm3
-rwxr-xr-xext/DB_File/t/db-btree.t4
-rwxr-xr-xext/DB_File/t/db-hash.t4
-rwxr-xr-xext/DB_File/t/db-recno.t4
4 files changed, 8 insertions, 7 deletions
diff --git a/ext/DB_File/DB_File.pm b/ext/DB_File/DB_File.pm
index 42913fb9fa..e8e0c005f6 100644
--- a/ext/DB_File/DB_File.pm
+++ b/ext/DB_File/DB_File.pm
@@ -165,7 +165,8 @@ our ($db_version, $use_XSLoader, $splice_end_array, $Error);
use Carp;
-$VERSION = "1.816_1" ;
+$VERSION = "1.816_2" ;
+$VERSION = eval $VERSION;
{
local $SIG{__WARN__} = sub {$splice_end_array = "@_";};
diff --git a/ext/DB_File/t/db-btree.t b/ext/DB_File/t/db-btree.t
index cb5ff43865..d6966da6a0 100755
--- a/ext/DB_File/t/db-btree.t
+++ b/ext/DB_File/t/db-btree.t
@@ -1472,7 +1472,7 @@ ok(165,1);
$h{"fred"} = "joe" ;
ok(173, $h{"fred"} eq "joe");
- eval { grep { $h{$_} } (1, 2, 3) };
+ eval { my @r= grep { $h{$_} } (1, 2, 3) };
ok (174, ! $@);
@@ -1488,7 +1488,7 @@ ok(165,1);
ok(176, $db->FIRSTKEY() eq "fred") ;
- eval { grep { $h{$_} } (1, 2, 3) };
+ eval { my @r= grep { $h{$_} } (1, 2, 3) };
ok (177, ! $@);
undef $db ;
diff --git a/ext/DB_File/t/db-hash.t b/ext/DB_File/t/db-hash.t
index e8f23c90db..889bbe91ff 100755
--- a/ext/DB_File/t/db-hash.t
+++ b/ext/DB_File/t/db-hash.t
@@ -970,7 +970,7 @@ EOM
$h{"fred"} = "joe" ;
ok(137, $h{"fred"} eq "joe");
- eval { grep { $h{$_} } (1, 2, 3) };
+ eval { my @r= grep { $h{$_} } (1, 2, 3) };
ok (138, ! $@);
@@ -986,7 +986,7 @@ EOM
ok(140, $db->FIRSTKEY() eq "fred") ;
- eval { grep { $h{$_} } (1, 2, 3) };
+ eval { my @r= grep { $h{$_} } (1, 2, 3) };
ok (141, ! $@);
undef $db ;
diff --git a/ext/DB_File/t/db-recno.t b/ext/DB_File/t/db-recno.t
index 26bae0706f..1eed35b4fd 100755
--- a/ext/DB_File/t/db-recno.t
+++ b/ext/DB_File/t/db-recno.t
@@ -994,7 +994,7 @@ EOM
$h[0] = "joe" ;
ok(155, $h[0] eq "joe");
- eval { grep { $h[$_] } (1, 2, 3) };
+ eval { my @r= grep { $h[$_] } (1, 2, 3) };
ok (156, ! $@);
@@ -1008,7 +1008,7 @@ EOM
ok(157, $h[1] eq "joe");
- eval { grep { $h[$_] } (1, 2, 3) };
+ eval { my @r= grep { $h[$_] } (1, 2, 3) };
ok (158, ! $@);
undef $db ;