Re: [HACKERS] [PATCH] Removes uninitialized variable compiler warning - Mailing list pgsql-hackers

From Todd Sedano
Subject Re: [HACKERS] [PATCH] Removes uninitialized variable compiler warning
Date
Msg-id CAGqMwaDoOm5iB+4_p_YG3cPNDoEH1sLV3s3o82=AkWfmPsseUA@mail.gmail.com
Whole thread Raw
In response to Re: [HACKERS] [PATCH] Removes uninitialized variable compiler warning  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
We can disregard this patch. It appears that PointerGetDatum initializes lenlemm.


On Mon, Mar 20, 2017 at 10:04 AM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
Todd Sedano <tsedano@pivotal.io> writes:
> This patch removes a compiler warning.
> warning: variable 'lenlemm' is uninitialized when used here
> [-Wuninitialized]

Hm, on what compiler?  AFAICS, that parsetext() function hasn't
changed meaningfully since 2007, and nobody complained of
uninitialized-variable warnings in it before.

We're generally willing to try to silence such warnings on mainstream
compilers, but not on weird ones ...

                        regards, tom lane

pgsql-hackers by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: [HACKERS] increasing the default WAL segment size
Next
From: Robert Haas
Date:
Subject: Re: [HACKERS] increasing the default WAL segment size