Back-patch 9.4-era compiler warning fixes into older branches.

Tom Lane <tgl@sss.pgh.pa.us>

Commit: e9e2bde2d29ceed3817434b85a4dfef84fb25556
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2017-02-17T21:58:59Z
Releases: 9.3.17
Back-patch 9.4-era compiler warning fixes into older branches.

This applies portions of commits b64b5ccb6 and b1aebbb6a to the older
branches, in hopes of getting -Werror builds to succeed there.  The
applied changes simply remove useless tests, eg checking an unsigned
variable to see if it is >= 0.  Recent versions of clang warn about
such tests by default.

Files

PathChange+/−
contrib/pg_standby/pg_standby.c modified +1 −1
src/interfaces/libpq/fe-exec.c modified +1 −2