Bug#677145: libmonkey-patch-perl: "Prototype mismatch" warnings

Jakub Wilk jwilk at debian.org
Mon Jun 11 21:05:17 UTC 2012


Package: libmonkey-patch-perl
Version: 0.03-1
Severity: minor
Tags: patch

When I monkey-patch a prototyped subroutine, Monkey::Patch::Handle emits 
warnings about prototype mismatch:

$ perl test.pl
Prototype mismatch: sub Getopt::Long::GetOptions (@) vs none at /usr/share/perl5/Monkey/Patch/Handle.pm line 85.
Prototype mismatch: sub Getopt::Long::GetOptions: none vs (@) at /usr/share/perl5/Monkey/Patch/Handle.pm line 102.

It would be nice if these warnings could be suppressed. Patch attached.


-- System Information:
Debian Release: wheezy/sid
     APT prefers unstable
     APT policy: (990, 'unstable'), (500, 'experimental')
Architecture: i386 (x86_64)
Foreign Architectures: amd64

Kernel: Linux 3.3.0-trunk-amd64 (SMP w/2 CPU cores)
Locale: LANG=C, LC_CTYPE=pl_PL.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages libmonkey-patch-perl depends on:
ii  libsub-delete-perl  1.00002-1
ii  libsuper-perl       1.17-1
ii  perl                5.14.2-11

-- 
Jakub Wilk
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test.pl
Type: text/x-perl
Size: 193 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-perl-maintainers/attachments/20120611/ea96daad/attachment.pl>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: no-warnings-prototype.diff
Type: text/x-diff
Size: 529 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-perl-maintainers/attachments/20120611/ea96daad/attachment.diff>


More information about the pkg-perl-maintainers mailing list