pgsql: Fix some assorted compiler warnings on Windows.

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Fix some assorted compiler warnings on Windows.
Date: 2018-05-01 23:38:35
Message-ID: E1fDeqx-0000IY-Dm@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/b2328bf62b6465236e318d31a011ced5dccfd580

Modified Files
--------------
src/backend/replication/basebackup.c | 2 +-
src/bin/pgbench/pgbench.c | 3 ++-
src/include/pg_config.h.win32 | 4 +++-
3 files changed, 6 insertions(+), 3 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Andres Freund 2018-05-02 00:32:39 Re: pgsql: Clean up warnings from -Wimplicit-fallthrough.
Previous Message Tom Lane 2018-05-01 23:35:18 pgsql: Clean up warnings from -Wimplicit-fallthrough.