pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Peter Eisentraut <peter@eisentraut.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Remove some code for old unsupported versions of MSVC
Date: Tue, 08 Oct 2019 08:53:30 +0000
Message-ID: <E1iHlFK-0003QX-LD@gemulon.postgresql.org> (raw)

Remove some code for old unsupported versions of MSVC

As of d9dd406fe281d22d5238d3c26a7182543c711e74, we require MSVC 2013,
which means _MSC_VER >= 1800.  This means that conditionals about
older versions of _MSC_VER can be removed or simplified.

Previous code was also in some cases handling MinGW, where _MSC_VER is
not defined at all, incorrectly, such as in pg_ctl.c and win32_port.h,
leading to some compiler warnings.  This should now be handled better.

Reviewed-by: Michael Paquier <michael@paquier.xyz>

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/38d8dce61fff09daae0edb6bcdd42b0c7f10ebcd

Modified Files
--------------
src/backend/utils/adt/pg_locale.c                  |  23 +-
src/backend/utils/adt/selfuncs.c                   |  13 -
src/bin/pg_ctl/pg_ctl.c                            |  31 --
src/include/pg_config.h.win32                      |  33 +-
src/include/port/win32.h                           |   2 +-
src/include/port/win32_port.h                      |  12 -
src/include/utils/float.h                          |   4 +-
.../ecpg/test/expected/pgtypeslib-nan_test.c       | 107 +++----
.../ecpg/test/expected/pgtypeslib-nan_test.stderr  | 354 ++++++++++-----------
src/interfaces/ecpg/test/pgtypeslib/nan_test.pgc   |   7 -
src/port/chklocale.c                               |   4 +-
src/tools/msvc/Solution.pm                         |   2 -
12 files changed, 235 insertions(+), 357 deletions(-)



view thread (4+ messages)  latest in thread

Message-ID: <E1iHlFK-0003QX-LD@gemulon.postgresql.org>
Permalink:  ../E1iHlFK-0003QX-LD@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1iHlFK-0003QX-LD@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: peter@eisentraut.org
  Subject: Re: pgsql: Remove some code for old unsupported versions of MSVC
  In-Reply-To: <E1iHlFK-0003QX-LD@gemulon.postgresql.org>
  References: <E1iHlFK-0003QX-LD@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox