Re: New compile warnings - Mailing list pgsql-hackers

From Tom Lane
Subject Re: New compile warnings
Date
Msg-id 21472.1100969611@sss.pgh.pa.us
Whole thread Raw
In response to New compile warnings  (Bruce Momjian <pgman@candle.pha.pa.us>)
Responses Re: New compile warnings
List pgsql-hackers
Bruce Momjian <pgman@candle.pha.pa.us> writes:
> I am seeing the following compile warnings in CVS. I am using for perl:
>     Summary of my perl5 (5.0 patchlevel 5 subversion 3) configuration:

I believe these two:

> plperl.c:948: warning: `ret_hv' might be used uninitialized in this function
> plperl.c:949: warning: `ret_av' might be used uninitialized in this function

indicate an actual bug --- at least, it's far from clear that the code
can't try to use an uninitialized value.  I trust that the authors of
plperl will step up and fix it; I'm not sufficiently clear on what cases
they are trying to support to want to touch it.

The others indicate sloppiness in the C code generated by perl's XS
functionality.  There's nothing we can do about them.  FWIW, less
obsolete versions of Perl generate fewer warnings --- the only one of
these that I see on 5.8.0 and up is

> SPI.c:158: warning: unused variable `items'
        regards, tom lane


pgsql-hackers by date:

Previous
From: Richard Huxton
Date:
Subject: Re: Fwd: SELECT MAX with char => BUG?
Next
From: Tom Lane
Date:
Subject: Re: Fwd: SELECT MAX with char => BUG?