Re: Getting rid of warnings - Mailing list pgsql-patches

From Magnus Hagander
Subject Re: Getting rid of warnings
Date
Msg-id 20070125144016.GG27011@svr2.hagander.net
Whole thread Raw
In response to Re: Getting rid of warnings  (Peter Eisentraut <peter_e@gmx.net>)
List pgsql-patches
On Thu, Jan 25, 2007 at 03:29:50PM +0100, Peter Eisentraut wrote:
> Magnus Hagander wrote:
> > * NULL function pointer in SSL call cast to the correct pointer type
>
> Why not write NULL?
>
> In the alternative, declare the variable to have the right type to begin
> with.

I went down the path of least resistance :-) Not sure if there was a
reason to code it that way from the beginning.
NULL works equally well (tested).

I assume this change is something ac ommitter can take care of at
commit-time, so I'll not resubmit for it unless asked to.

//Magnus

pgsql-patches by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: Getting rid of warnings
Next
From: Bruce Momjian
Date:
Subject: Re: [HACKERS] Fix for bug in plpython bool type conversion