Re: new compiler warnings

From: "Kevin Grittner" <Kevin(dot)Grittner(at)wicourts(dot)gov>
To: "Robert Haas" <robertmhaas(at)gmail(dot)com>, "Peter Eisentraut" <peter_e(at)gmx(dot)net>
Cc: "Andrew Dunstan" <andrew(at)dunslane(dot)net>,<pgsql(at)j-davis(dot)com>, <pgsql-hackers(at)postgresql(dot)org>, "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Subject: Re: new compiler warnings
Date: 2011-10-18 14:25:58
Message-ID: 4E9D46260200002500042162@gw.wicourts.gov
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Robert Haas <robertmhaas(at)gmail(dot)com> wrote:

> Which it seems to me we could change by doing rc = write(). Then
> if rc <= 0, we bail out. If not, we add and subtract rc, rather
> than PIPE_MAX_PAYLOAD.

Something along the general lines of this?:

http://archives.postgresql.org/pgsql-hackers/2011-02/msg01719.php

> That would be barely more code, probably safer, and would silence
> the warning.

Exactly.

-Kevin

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Kevin Grittner 2011-10-18 14:34:20 Re: new compiler warnings
Previous Message Ahmed Shinwari 2011-10-18 14:17:28 Re: [BUG] SSPI authentication fails on Windows when server parameter is localhost or domain name