Subject: | Monkey::Patch causes "Prototype mismatch" warnings |
Date: | Fri, 28 Sep 2012 10:31:25 +0200 |
To: | bug-Monkey-Patch [...] rt.cpan.org |
From: | Niels Thykier <niels [...] thykier.net> |
Hi
I happened to notice #677145[1] in the Debian bug tracker and decided to
forward it upstream.
Jakub Wilk (the original reporter) found that when monkey patching a
prototyped sub, it causes warnings (similar to the "sub redefined"
warning that Monkey::Patch also suppresses).
I have attached the test script and that patch submitted by Jakub, which
silences the warning.
I was thinking it might be prudent if the "patching" sub automatically
got the prototype of the original sub. Just in case code loaded "later"
depends on this prototype. Though I have no idea of how to determine
the prototype of the original sub.
The bug was filed against 0.03 in the Debian bug tracker. Perl 5.14.2
was installed on the system from where it was reported. If you want, I
can give you the output of "perl -V", but the bug does not really seem
to be system specific.
If you need any additional information, let me know.
~Niels
[1] http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=677145
You can submit information to the Debian bug by mailing
677145@bugs.debian.org
Though the submitter will not see that by default, so if you want the
submitter to see it, ALSO mail
677145-submitter@bugs.debian.org
PS: I am not auto CC'ed to the Debian bug (I am not the maintainer of
your package in Debian) nor am I the submitter, so please CC me directly
if needed.
Message body is not shown because sender requested not to inline it.
Message body is not shown because sender requested not to inline it.