Re: execl() sentinel - Mailing list pgsql-patches

From Peter Eisentraut
Subject Re: execl() sentinel
Date
Msg-id 200707180827.18123.peter_e@gmx.net
Whole thread Raw
In response to Re: execl() sentinel  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: execl() sentinel
List pgsql-patches
Tom Lane wrote:
> It's too bad that gcc doesn't have a
> -Wno-snarkiness-about-system-headers-thank-you switch.

It does have a switch to *add* snarkiness about system headers, but does
not do it by default.

The problem in this case is that an uncast null pointer constant is not
always a sufficient sentinel for variadic functions, as explained here:
<http://c-faq.com/null/null2.html>.

--
Peter Eisentraut
http://developer.postgresql.org/~petere/

pgsql-patches by date:

Previous
From: ITAGAKI Takahiro
Date:
Subject: Re: docfix - DELETE doesn't affect auto-analyze
Next
From: Peter Eisentraut
Date:
Subject: Re: Async Commit, v21 (now: v22)