summaryrefslogtreecommitdiffstats
path: root/fake_packages/gen.pl
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mageia.org>2012-03-08 18:19:18 +0000
committerThierry Vignaud <tv@mageia.org>2012-03-08 18:19:18 +0000
commit4061718e4647fceac563c23f719b2056ffa1acb7 (patch)
treeab28b39ff238f0eb00c817ba3f1e2e72311e303d /fake_packages/gen.pl
parent627ff2ed3a37292285ad7b71df46d35cea60e316 (diff)
downloadperl_checker-4061718e4647fceac563c23f719b2056ffa1acb7.tar
perl_checker-4061718e4647fceac563c23f719b2056ffa1acb7.tar.gz
perl_checker-4061718e4647fceac563c23f719b2056ffa1acb7.tar.bz2
perl_checker-4061718e4647fceac563c23f719b2056ffa1acb7.tar.xz
perl_checker-4061718e4647fceac563c23f719b2056ffa1acb7.zip
(get_paras) remove empty prototypes from functions (it's possible we see it using shift later):
thus fixing perl_checker warnings on Curses::UI
Diffstat (limited to 'fake_packages/gen.pl')
-rwxr-xr-xfake_packages/gen.pl2
1 files changed, 2 insertions, 0 deletions
diff --git a/fake_packages/gen.pl b/fake_packages/gen.pl
index b65cd5d..3b49922 100755
--- a/fake_packages/gen.pl
+++ b/fake_packages/gen.pl
@@ -9,6 +9,8 @@ my %l;
sub get_paras {
my ($name, $para) = @_;
$name =~ s/\Q$current_prefix//;
+ # remove empty prototypes from functions (it's possible we see it using shift later):
+ $name =~ s/\(\)//;
$current_name = $name;
# perl_checker don't like those:
return if member($name, qw(print use));