Skip Menu |

This queue is for tickets about the Curses CPAN distribution.

Report information
The Basics
Id: 94596
Status: resolved
Priority: 0/
Queue: Curses

People
Owner: Nobody in particular
Requestors: dmacks [...] netspace.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: 1.30



Subject: c_setmevent() prototype mismatch
Date: Thu, 10 Apr 2014 02:53:51 -0400
To: bug-Curses [...] rt.cpan.org
From: "Daniel Macks" <dmacks [...] netspace.org>
Building Curses-1.29 on OS X 10.8 (apple's perl-5.12.4) with all stated dependencies satisfied by fink gives a warning during 'make': gcc -c  -I/sw/include/ncursesw -I/sw/include -g -pipe -fno-common -DPERL_DARWIN -fno-strict-aliasing -fstack-protector -I/usr/local/include -Os   -DVERSION=\"1.29\" -DXS_VERSION=\"1.29\"  "-I/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE"   Curses.c In file included from Curses.c:570: ./CursesFun.c:3788:26: warning: too many arguments in call to 'c_setmevent'         c_setmevent(ST(0), event);         ~~~~~~~~~~~             ^ 2 warnings generated. Curses.c line ~380 declares a function: static void c_setmevent(sv) SV *sv; {     SvCUR(sv) = sizeof(MEVENT);     SvPOK_only(sv); } but CursesFun.c line 3788 indeed calls it with a second parameter:     c_setmevent(ST(0), event); Even gen/Gen.pm seems to be setting the 2-parameter call in line 128:          'RETN_OUT' => 'c_setmevent($A, $N)', dan -- Daniel Macks dmacks@netspace.org
Thanks for the report; this has always been broken, and I will fix it in the next release in a few days.
Fixed in Release 1.30.