Re: plperl compiler warning

Joe Conway <mail@joeconway.com>

From: Joe Conway <mail@joeconway.com>
To: Tim Bunce <Tim.Bunce@pobox.com>
Cc: "Hackers (PostgreSQL)" <pgsql-hackers@postgresql.org>
Date: 2010-01-28T16:27:04Z
Lists: pgsql-hackers
On 01/28/2010 07:30 AM, Tim Bunce wrote:
> On Thu, Jan 28, 2010 at 06:31:19AM -0800, Joe Conway wrote:
>> Last night I noted the following warning:
>>
>> plperl.c: In function ‘plperl_create_sub’:
>>
>> plperl.c:1117: warning: null argument where non-null required (argument 2)
> 
> The master branch of my git clone says line 1117 is:
> 
>     subref = newRV_inc((SV*)GvCVu((GV*)sub_glob));
> 
> Does that match yours? (If not, what is the text on the line?)

I pull directly from CVS, not git, but in any case my line 1117 is

      subref = newRV_inc((SV*)GvCVu((GV*)sub_glob));

so it appears to be the same

> What perl version are you using?
> What compiler version are you using?

I'm on stock Fedora 12:

perl.x86_64             4:5.10.0-87.fc12
gcc.x86_64              4.4.2-20.fc12

HTH,

Joe