pgsql: Suppress compiler warnings in ecpg test on newer Windows toolcha

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Suppress compiler warnings in ecpg test on newer Windows toolcha
Date: 2017-02-24 21:45:38
Message-ID: E1chNgI-0005vB-O1@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Suppress compiler warnings in ecpg test on newer Windows toolchains.

nan_test.pgc supposed that it could unconditionally #define isnan()
and isinf() on WIN32. This was evidently copied at some point from
src/include/port/win32.h, but nowadays there's a test on _MSC_VER
there. Make nan_test.pgc look the same.

Per buildfarm warnings. There's no evidence this produces anything
worse than a warning, and besides it's only a test case, so I don't
feel a need to back-patch.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/c5658a0764d5ac5ea8c2c11d27c62d5472234227

Modified Files
--------------
.../ecpg/test/expected/pgtypeslib-nan_test.c | 102 +++---
.../ecpg/test/expected/pgtypeslib-nan_test.stderr | 354 ++++++++++-----------
src/interfaces/ecpg/test/pgtypeslib/nan_test.pgc | 2 +
3 files changed, 231 insertions(+), 227 deletions(-)

Responses

Browse pgsql-committers by date

  From Date Subject
Next Message Bruce Momjian 2017-02-25 17:59:34 pgsql: pg_upgrade docs: clarify instructions on standby extensions
Previous Message Tom Lane 2017-02-24 20:21:47 pgsql: Fix unportable definition of BSWAP64() macro.