]> granicus.if.org Git - postgresql/commit
Suppress compiler warnings in ecpg test on newer Windows toolchains.
authorTom Lane <tgl@sss.pgh.pa.us>
Fri, 24 Feb 2017 21:45:32 +0000 (16:45 -0500)
committerTom Lane <tgl@sss.pgh.pa.us>
Fri, 24 Feb 2017 21:45:32 +0000 (16:45 -0500)
commitc5658a0764d5ac5ea8c2c11d27c62d5472234227
tree1a515d34a513f50a2f7f3dc79bed1878a5d60391
parent41c16edcf6c90d1f42810ea523b7e65c99edad50
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.
src/interfaces/ecpg/test/expected/pgtypeslib-nan_test.c
src/interfaces/ecpg/test/expected/pgtypeslib-nan_test.stderr
src/interfaces/ecpg/test/pgtypeslib/nan_test.pgc