Fix some assorted compiler warnings on Windows.

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

Commit: b2328bf62b6465236e318d31a011ced5dccfd580
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2018-05-01T23:38:26Z
Releases: 11.0
Fix some assorted compiler warnings on Windows.

Don't overflow the result type of constant expressions.  Don't negate
unsigned types.  Define HAVE_STDBOOL_H for Visual C++ 2013 and later.

Thomas Munro
Reviewed-By: Michael Paquier and Tom Lane

Discussion: https://postgr.es/m/CAEepm%3D3%3DTDYEXUEcHpEx%2BTwc31wo7PA0oBAiNt6sWmq93MW02A%40mail.gmail.com

Files

PathChange+/−
src/backend/replication/basebackup.c modified +1 −1
src/bin/pgbench/pgbench.c modified +2 −1
src/include/pg_config.h.win32 modified +3 −1

Discussion